cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r471283 - /incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m
Date Sat, 04 Nov 2006 22:38:52 GMT
Author: torehalset
Date: Sat Nov  4 14:38:52 2006
New Revision: 471283

URL: http://svn.apache.org/viewvc?view=rev&rev=471283
Log:
better way to set array controller content

Modified:
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m?view=diff&rev=471283&r1=471282&r2=471283
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/AppController.m Sat Nov  4 14:38:52 2006
@@ -93,8 +93,7 @@
         [NSApp presentError:error];
         return;
     }
-    [galleriesController removeObjects:[galleriesController arrangedObjects]];
-    [galleriesController addObjects:grows];
+    [galleriesController setContent:grows];
     
     // prepare/refresh the artist controller
 	CAYNamedQuery *aquery = [[CAYNamedQuery alloc] init];
@@ -106,8 +105,7 @@
         [NSApp presentError:error];
         return;
     }
-	[artistsController removeObjects:[artistsController arrangedObjects]];
-	[artistsController addObjects:arows];
+    [artistsController setContent:arows];
     
 }
 



Mime
View raw message