• 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: Undocumented preparedCellAtColumn:-1 row:row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undocumented preparedCellAtColumn:-1 row:row


  • Subject: Re: Undocumented preparedCellAtColumn:-1 row:row
  • From: Ernesto Giannotta <email@hidden>
  • Date: Sat, 22 Aug 2009 00:50:27 +0200


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 (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: 
 >Undocumented preparedCellAtColumn:-1 row:row (From: Seth Willits <email@hidden>)
 >Re: Undocumented preparedCellAtColumn:-1 row:row (From: Ernesto Giannotta <email@hidden>)
 >Re: Undocumented preparedCellAtColumn:-1 row:row (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Undocumented preparedCellAtColumn:-1 row:row
  • Next by Date: Possible reasons why "no help is available"?
  • Previous by thread: Re: Undocumented preparedCellAtColumn:-1 row:row
  • Next by thread: NSProgressIndicator Subclass is slow
  • Index(es):
    • Date
    • Thread