cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r438248 - in /incubator/cayenne/sandbox/CocoaCayenne/CAYClient: AppController.m Artist.h Artist.m English.lproj/MainMenu.nib/keyedobjects.nib
Date Tue, 29 Aug 2006 21:59:34 GMT
Author: torehalset
Date: Tue Aug 29 14:59:34 2006
New Revision: 438248

URL: http://svn.apache.org/viewvc?rev=438248&view=rev
Log:
 * add/delete buttons in gui. add painting works partly, others do not
   work.
 * removed getter for artists paintings as it is move to
   key-value coding

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

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m?rev=438248&r1=438247&r2=438248&view=diff
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m Tue Aug 29 14:59:34 2006
@@ -61,8 +61,11 @@
         
         // graph
         // abstract [classMapping setObject:@"CAYNodeDiff" forKey:@"org.objectstyle.cayenne.graph.NodeDiff"];
-        [classMapping setObject:@"CAYNodePropertyChangeOperation" forKey:@"org.objectstyle.cayenne.graph.NodePropertyChangeOperation"];
         [classMapping setObject:@"CAYCompoundDiff" forKey:@"org.objectstyle.cayenne.graph.CompoundDiff"];
+        [classMapping setObject:@"CAYNodeCreateOperation" forKey:@"org.objectstyle.cayenne.graph.NodeCreateOperation"];
+        [classMapping setObject:@"CAYNodePropertyChangeOperation" forKey:@"org.objectstyle.cayenne.graph.NodePropertyChangeOperation"];
+        [classMapping setObject:@"CAYNodeDeleteOperation" forKey:@"org.objectstyle.cayenne.graph.NodeDeleteOperation"];
+        [classMapping setObject:@"CAYNodeIdChangeOperation" forKey:@"org.objectstyle.cayenne.graph.NodeIdChangeOperation"];
         
         // connect to the server
         // TODO: basic authentication and/or session management

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.h
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.h?rev=438248&r1=438247&r2=438248&view=diff
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.h (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.h Tue Aug 29 14:59:34 2006
@@ -29,6 +29,4 @@
 -(void)setDateOfBirth:(NSDate *)d;
 -(NSDate *)dateOfBirth;
 
--(NSArray *)paintings;
-
 @end

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m?rev=438248&r1=438247&r2=438248&view=diff
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m Tue Aug 29 14:59:34 2006
@@ -59,17 +59,4 @@
     return [values objectForKey:@"dateOfBirth"];
 }
 
--(NSArray *)paintings
-{
-    id val = [values objectForKey:@"paintings"];
-    if([val isKindOfClass:[CAYFault class]])
-    {
-        CAYFault *fault = (CAYFault *)val;
-        NSLog(@"resolve fault %@", fault);
-        val = [fault resolveFault];
-        [values setValue:val forKey:@"paintings"];
-    }
-	return [values objectForKey:@"paintings"];
-}
-
 @end

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?rev=438248&r1=438247&r2=438248&view=diff
==============================================================================
Binary files - no diff available.



Mime
View raw message