Re: NSIndexSet of NSButtonCells in NSOutlineView

2011-12-08 Thread Graham Cox
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 inv

Re: NSIndexSet of NSButtonCells in NSOutlineView

2011-12-08 Thread Gilles Celli
Ok as you suggested it's better to call it active Buttons in the OutlineView then selected... For the NSIndexSet: let's say that I've 3 ore more NSButtonCells, if only one is active then it will display only one Graph, if it has 2 activated let's say the first and last one both resp. graphs wil

Re: NSIndexSet of NSButtonCells in NSOutlineView

2011-12-08 Thread Quincey Morris
On Dec 8, 2011, at 08:12 , Gilles Celli wrote: > The instrument's name is selectable as an NSButtonCell, the idea is to turn > on/off its respective graph / plot. > So there's a mix of NSButtonCells along with NSString in the NSOutlineView. > My model's NSButtonCells are based of NSMutableDiction

NSIndexSet of NSButtonCells in NSOutlineView

2011-12-08 Thread Gilles Celli
Hi, I've the following problem: I'm writing an application which will display plots / graph: an NSOutlineView has been setup and working which displays the name, location of some scientific instruments (like thermometer, voltage etc.). The instrument's name is selectable as an NSButtonCell, the