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];
}