Testing selection with NSArrayController?
Testing selection with NSArrayController?
- Subject: Testing selection with NSArrayController?
- From: Rick Mann <email@hidden>
- Date: Sun, 18 Jan 2015 00:10:28 -0800
I don't see any method for testing if an object is selected, other than to first get the index of the object in the backing NSArray, then see if that index is in the NSArrayController's selectedIndexes. Is this really the way to test to see if an object is selected?
I'm building a view that renders a bunch of objects (a drawing canvas). Some of these render differently if the objects are selected. As I iterate through the list of objects to render, I need to test if each one is selected.
Am I missing something? Thanks.
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden