cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r449120 - in /incubator/cayenne/sandbox/CocoaCayenne/CAYClient: AppController.h AppController.m English.lproj/MainMenu.nib/classes.nib English.lproj/MainMenu.nib/keyedobjects.nib
Date Fri, 22 Sep 2006 23:13:09 GMT
Author: torehalset
Date: Fri Sep 22 16:13:08 2006
New Revision: 449120

URL: http://svn.apache.org/viewvc?view=rev&rev=449120
Log:
 * edit dateOfBirth - does not work for null values..
 * select gallery for painting

Modified:
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.h
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/classes.nib
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/keyedobjects.nib

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.h
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.h?view=diff&rev=449120&r1=449119&r2=449120
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.h (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.h Fri Sep 22 16:13:08 2006
@@ -25,6 +25,7 @@
 @interface AppController : NSObject
 {
 	IBOutlet CAYArrayController *artistsController;
+	IBOutlet CAYArrayController *galleriesController;
     CAYObjectContext *objectContext;
 }
 

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m?view=diff&rev=449120&r1=449119&r2=449120
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m Fri Sep 22 16:13:08 2006
@@ -61,15 +61,24 @@
         [artistsController setObjectContext:[self objectContext]];
         [artistsController setDeleteObjectOnRemove:YES];
         
+        // prepare the galleries controller
+        [galleriesController setObjectContext:[self objectContext]];
+        CAYNamedQuery *query = [[CAYNamedQuery alloc] init];
+        [query setName:@"galleryQuery"];
+        NSArray *rows = [[self objectContext] performQuery:query];
+        [galleriesController removeObjects:[galleriesController arrangedObjects]];
+        [galleriesController addObjects:rows];
+        [query release];
+        
         // test creating core data model:
-        CAYEntityResolver *entityResolver = [[self objectContext] entityResolver];
-        CAYDataMap *dataMap = [[entityResolver maps] objectAtIndex:0];
-        NSManagedObjectModel *coreDataModel = [CAYDataMapIO dataMapAsManagedObjectModel:dataMap
entityResolver:entityResolver];
-        NSLog(@"DEBUG: core data model: %@", coreDataModel);
+        // CAYEntityResolver *entityResolver = [[self objectContext] entityResolver];
+        // CAYDataMap *dataMap = [[entityResolver maps] objectAtIndex:0];
+        // NSManagedObjectModel *coreDataModel = [CAYDataMapIO dataMapAsManagedObjectModel:dataMap
entityResolver:entityResolver];
+        // NSLog(@"DEBUG: core data model: %@", coreDataModel);
     }
     
 	CAYNamedQuery *query = [[CAYNamedQuery alloc] init];
-	[query setName:@"objcquery"];
+	[query setName:@"artistQuery"];
 	NSArray *rows = [[self objectContext] performQuery:query];
     
 	[artistsController removeObjects:[artistsController arrangedObjects]];

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/classes.nib
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/classes.nib?view=diff&rev=449120&r1=449119&r2=449120
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/classes.nib
(original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/classes.nib
Fri Sep 22 16:13:08 2006
@@ -4,11 +4,15 @@
             ACTIONS = {commit = id; query = id; }; 
             CLASS = AppController; 
             LANGUAGE = ObjC; 
-            OUTLETS = {artistsController = CAYArrayController; }; 
+            OUTLETS = {
+                artistsController = CAYArrayController; 
+                galleriesController = CAYArrayController; 
+            }; 
             SUPERCLASS = NSObject; 
         }, 
         {CLASS = CAYArrayController; LANGUAGE = ObjC; SUPERCLASS = NSArrayController; },

-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }
+        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
+        {CLASS = NSDatePicker; LANGUAGE = ObjC; SUPERCLASS = NSControl; }
     ); 
     IBVersion = 1; 
 }

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/keyedobjects.nib
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/English.lproj/MainMenu.nib/keyedobjects.nib?view=diff&rev=449120&r1=449119&r2=449120
==============================================================================
Binary files - no diff available.



Mime
View raw message