Re: Undocumented preparedCellAtColumn:-1 row:row
Re: Undocumented preparedCellAtColumn:-1 row:row
- Subject: Re: Undocumented preparedCellAtColumn:-1 row:row
- From: Ernesto Giannotta <email@hidden>
- Date: Sat, 22 Aug 2009 00:27:29 +0200
On 22/ago/09, at 00:17, Seth Willits wrote:
In some Apple sample code...
// If it is a "full width" cell, we don't have to go through the rows
NSCell *fullWidthCell = [self preparedCellAtColumn:-1 row:row];
if (fullWidthCell) {
....
} else {
....
}
It's not documented what preparedCellAtColumn:-1 returns though.
Anyone know for sure?
yep! it's the cell that you can return in the delegate method:
- (NSCell *)outlineView:(NSOutlineView *)ov
dataCellForTableColumn:(NSTableColumn *)tableColumn
item:(id)item
{
// If we return a cell for the 'nil' tableColumn, it will be used
as a "full width" cell and span all the columns
Cool Runnings,
Erne.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden