Re: Setting the selection of an array controller?
Re: Setting the selection of an array controller?
- Subject: Re: Setting the selection of an array controller?
- From: Quincey Morris <email@hidden>
- Date: Fri, 25 Mar 2011 17:35:27 -0700
On Mar 25, 2011, at 17:13, Rick Mann wrote:
> I've got examples working where the selection is managed by Cocoa, but I don't know how to set it myself.
Use some combination of:
[arrayController setSelectionIndex: someIndex];
[arrayController setSelectionIndexes: someIndexSet];
[arrayController addSelectionIndexes: someIndexSet];
[arrayController removeSelectionIndexes: someIndexSet];
On Mar 25, 2011, at 17:26, Rick Mann wrote:
> Right after sending this email, I think I found a good example: Graphics Bindings
>
> http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Trust me, you aren't going to want to do this with bindings, not the selection is controlled from a custom view.
_______________________________________________
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