Re: Different NSCells in an NSOutlineView
Re: Different NSCells in an NSOutlineView
- Subject: Re: Different NSCells in an NSOutlineView
- From: Andy Lee <email@hidden>
- Date: Thu, 20 Oct 2005 07:13:14 -0400
On Oct 20, 2005, at 4:13 AM, malcom wrote:
Hi. Yes that's ok. I need to have different NSCell for each row. Where
is this delegate into NSOutlineView? I can't find it....
It's not a delegate method, it's an instance method of NSTableColumn:
dataCellForRow:
- (id)dataCellForRow:(int)row
Returns the NSCell object used by the NSTableView to draw values for
the receiver. NSTableView always calls this method. By default, this
method just calls dataCell. Subclassers can override if they need to
potentially use different cells for different rows. Subclasses should
expect this method to be invoked with row equal to –1 in cases where
no actual row is involved but the table view needs to get some
generic cell info.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden