• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView view based full width view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView view based full width view
      • From: Jonathan Mitchell <email@hidden>
    • Re: NSTableView view based full width view
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTableView view based full width view (From: Jonathan Mitchell <email@hidden>)
 >Re: NSTableView view based full width view (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Unwanted enclosingScrollView
  • Next by Date: Re: NSTableView view based full width view
  • Previous by thread: Re: NSTableView view based full width view
  • Next by thread: Re: NSTableView view based full width view
  • Index(es):
    • Date
    • Thread