Re: NSTableView view based full width view
Re: NSTableView view based full width view
- Subject: Re: NSTableView view based full width view
- From: Ken Thomases <email@hidden>
- Date: Wed, 25 Jun 2014 10:41:48 -0500
On Jun 25, 2014, at 9:48 AM, Kyle Sluder wrote:
> 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.
Couldn't you return a custom row view using -tableView:rowViewForRow: and then return no cell views for that row by returning nil from -tableView:viewForTableColumn:row:?
Regards,
Ken
_______________________________________________
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