• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSIndexSet of NSButtonCells in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSIndexSet of NSButtonCells in NSOutlineView (From: Gilles Celli <email@hidden>)
 >Re: NSIndexSet of NSButtonCells in NSOutlineView (From: Quincey Morris <email@hidden>)
 >Re: NSIndexSet of NSButtonCells in NSOutlineView (From: Gilles Celli <email@hidden>)

  • Prev by Date: Re: Singletons with ARC
  • Next by Date: Re: Singletons with ARC
  • Previous by thread: Re: NSIndexSet of NSButtonCells in NSOutlineView
  • Next by thread: NSNetService getInputStream:outputStream: and ARC
  • Index(es):
    • Date
    • Thread