Re: NSIndexSet of NSButtonCells in NSOutlineView
Re: NSIndexSet of NSButtonCells in NSOutlineView
- Subject: Re: NSIndexSet of NSButtonCells in NSOutlineView
- From: Graham Cox <email@hidden>
- Date: Fri, 09 Dec 2011 18:08:52 +1100
On 09/12/2011, at 8:22 AM, Gilles Celli wrote:
> how do I detect which set if NSButtonCells are active ?
You need to track that in your dataSource, NSOutlineView will not do it for you.
As Quincey suggested, when your dataSource method -outlineView:setObjectValue:forTableColumn:byItem: is invoked, you have all the necessary information about the new state of that item. You dataSource uses that information to track the states - in this case if it has a NS(Mutable)IndexSet, you would figure out which index the item corresponds to and set or clear that index according to the objectValue of the item.
--Graham_______________________________________________
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