Skip navigation.
 
mlButtonCell with Text in OutlineView
FROM : David
DATE : Thu May 15 19:39:18 2008

I'm trying to have a hierarchical set of choices with a checkbox next to
each one. How can I best set this up?
My current thinking was to try and create a NSButtonCell subclass which
would act like a NSTextCell in that setting its value would set its title,
but I'd parse the string which is encoded with a flag to indicate if the
button is selected or not.

I have NSTreeController bound to my model and the column in NSOutlineView
bound to the appropriate key path in NSTreeController.

I do not understand how the column in the NSOutlineView knows how to set the
property to the cell. How are the cell and column related? How do they
interact?

What method do I need to implement in my cell to intercept the value being
set so that I can in turn set the title and button state?

Is this the best approach? Is there some other preferred approach to this
common problem?

Thanks

Related mailsAuthorDate
mlButtonCell with Text in OutlineView David May 15, 19:39
mlRe: ButtonCell with Text in OutlineView Kyle Sluder May 16, 07:58
mlRe: ButtonCell with Text in OutlineView David May 16, 22:32