Re: Hiding NSButtonCell

2010-07-06 Thread Rainer Standke
Thanks for your help, Graham, that now makes more sense. I am actually using 'isLeaf' on item to determine if it's a parent or not... Rainer On Jul 5, 2010, at 17:11 , Graham Cox wrote: > > On 06/07/2010, at 4:56 AM, Rainer Standke wrote: > >> setEnabled works on single cells, and as expected

Re: Hiding NSButtonCell

2010-07-05 Thread Graham Cox
On 06/07/2010, at 4:56 AM, Rainer Standke wrote: > setEnabled works on single cells, and as expected: the outline row's button > is grayed out. Oddly, setTransparent affects all cells in the column, i.e. > the button appears in no row, not even the ones that have no children. > > That's confu

Hiding NSButtonCell

2010-07-05 Thread Rainer Standke
Hello, I have an outline view with a column with an NSButtonCell in it. I want to make that button invisible and inactive for all outline rows. Here is my code for the ouline view's delegate: - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColum