On Apr 1, 2010, at 3:29 PM, Richard Somers wrote: > NSArrayController's selectedObjects method returns an array containing the > receiver’s selected objects. I also need an array containing the receiver's > unselected objects. Is there an easy way to do that?
Probably. Did you try something like this: (written in Mail, untested but it ought to do what you need) NSMutableArray *unselectedObjects = [[[controller arrangedObjects] mutableCopy] autorelease]; [unselectedObjects removeObjectsInArray:[controller selectedObjects]]; Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com