Re: Contextual Menus for an NSOutlineView
Re: Contextual Menus for an NSOutlineView
- Subject: Re: Contextual Menus for an NSOutlineView
- From: John Hörnkvist <email@hidden>
- Date: Thu, 22 Nov 2001 12:39:49 +0100
On Thursday, November 22, 2001, at 11:59 , Justin Wood wrote:
Anyway! The long and short of it is, I have no idea what to do, and I'd
appreciate any advice anyone might have, I'm sure there must be a
relatively
simple way of doing this, it doesn't seem to be a feature that is quite
'out
there'.
Your problem is most likely that NSOutlineView reuses one cell for all
rows in a column.
To get around that, you can subclass NSTableColumn and implement -
(id)dataCellForRow:(int)row; to return a different cell for each row.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com