• 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 Sends Null Column to Delegate/DataSource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView Sends Null Column to Delegate/DataSource


  • Subject: Re: NSTableView Sends Null Column to Delegate/DataSource
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 14 Jul 2012 12:38:39 -0700

On Jul 14, 2012, at 10:08 , Keary Suska wrote:

> For the archives, it is not safe to assume that tableView:isGroupRow: will determine which rows are actually group rows, at least if you implement tableView:dataCellForTableColumn:row:. It seems that regardless of whether you implement tableView:isGroupRow:, NSTableView will always send tableView:dataCellForTableColumn:row: a nil tablecolumn argument to determine whether the row is a group row (ostensibly). If you return an NSCell object, it will assume that the row is a group row and as a consequence will assume that *every* row is a group row unless the row returns nil.

A group row is one drawn with with different style characteristics. (In a normal table, for example, it has a gradient shaded background.) This is controlled by 'tableView:isGroupRow:'.

A group cell is one that draws the *entire row* as a single cell (and cells are not drawn per column). This is controlled by 'tableView:dataCellForTableColumn:nil row:'.

The two things are orthogonal, although in many cases you'll want the the group row to use a group cell to span the width of the table. One case where you might use a group cell *not* in a group row is in an outline view, where expandable rows might not need to show column information like detail rows.

_______________________________________________

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

References: 
 >NSTableView Sends Null Column to Delegate/DataSource (From: Keary Suska <email@hidden>)
 >Re: NSTableView Sends Null Column to Delegate/DataSource (From: John Terranova <email@hidden>)
 >Re: NSTableView Sends Null Column to Delegate/DataSource (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Core Data book for OSX
  • Next by Date: ABPerson does not have interface properties ?
  • Previous by thread: Re: NSTableView Sends Null Column to Delegate/DataSource
  • Next by thread: Core Data book for OSX
  • Index(es):
    • Date
    • Thread