Re: How to set the string and integer value of an NSButtonCell using NSOutilneView

2009-07-28 Thread Graham Cox
On 28/07/2009, at 7:17 AM, Korei Klein wrote: Also, how do I determine the index of the column which is the second argument of outlineView:objectValueForTableColumn:byItem. [[theOutlineView tableColumns] indexOfObject:theTableColumn]; You need to be wary of using the index though - it

How to set the string and integer value of an NSButtonCell using NSOutilneView

2009-07-27 Thread Korei Klein
I'm implementing an NSOutlineViewDataSource object which will be the data source of an NSOutlineView. The NSOutlineView displays its data in NSButtonCell s. The value displayed in an NSButtonCell is both an integer, and a string. The delegate method which I am implementing

Re: How to set the string and integer value of an NSButtonCell using NSOutilneView

2009-07-27 Thread Chase Meadors
Well, according to the documentation, an NSButtonCell's object value (and all interpretations thereof) correspond to the state of the button (on, off, or mixed). You want to set this as well as set the title of the button. Unlike NSBrowser, NSOutlineView's data source methods don't provide