On 22/ago/09, at 00:33, Seth Willits wrote:

On Aug 21, 2009, at 3:27 PM, Ernesto Giannotta wrote:

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


Ah. And that happens when? I guess a group row is probably one case?


It's up to you, if you implement this delegate method it will be called before a row is displayed.

The first call will have a nil tableColumn parameter (call it column -1) and if you return a valid cell object (note *any* cell you like) that row will be treated as a group row and no other calls will be sent to this method

otherwise it'll receive a call for every column of the row and you'll probably want to return the default column cell here like this:

return [tableColumn dataCellForRow:[ov rowForItem:item]];

but still could be any other valid cell object.



Cool Runnings,
Erne.


p.s.
don't know why my posts to the list are held for approval so don't come up in the list :-(


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to