cocoa - How can I make an NSOutlineView where some of the entires are buttons? -


I want to create an NSOutlineView subclass, where some entries appear like buttons, this looks like this:

Where All "[Add Items ] "Are buttons.

I feel like using the outline view in it: WillDisplayCell: forTableColumn: Items: Representative method somehow?

You would like to apply the profile view: dataCellForTableColumn: item: your profile See the method in the Representative Rows for an NSButtonCell back to where you want a button, and a NSTextFieldCell note for the other rows that this representative method was added in 10.5, if you were to support 10.4 or earlier , You'll need the custom NSTableColumn subclass which is dataCellForR Ow: will override the method.


Comments