Re: NSTableView view based full width view
Re: NSTableView view based full width view
- Subject: Re: NSTableView view based full width view
- From: Kyle Sluder <email@hidden>
- Date: Wed, 25 Jun 2014 09:48:44 -0500
On Jun 25, 2014, at 9:07 AM, Jonathan Mitchell <email@hidden> wrote:
>
> The docs for
>
> - (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
> say
>
> A different data cell can be returned for any particular table column and row, or a cell that will be used for the entire row (that is, a full width cell).
>
> This applies for cell based table views.
>
> Can I return a view to represent the whole row in a view based control?
Only if the row is a group row (the datasource/delegate returns YES from -…isGroupRow:).
In that case, -…viewForTableColumn:row: will get a nil table column, and you can return your full-width cell view.
I filed a radar asking for the ability to have full-width non-group rows, but haven’t heard anything about it.
--Kyle Sluder
_______________________________________________
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