• 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:27:29 +0200


On 22/ago/09, at 00:17, Seth Willits wrote:


In some Apple sample code...

// If it is a "full width" cell, we don't have to go through the rows
NSCell *fullWidthCell = [self preparedCellAtColumn:-1 row:row];
if (fullWidthCell) {
	....
} else {
	....
}



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



Cool Runnings, Erne.

_______________________________________________

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

  • Prev by Date: NSTableView and OutineView resizing bugs
  • Next by Date: Re: Undocumented preparedCellAtColumn:-1 row:row
  • Previous by thread: Undocumented preparedCellAtColumn:-1 row:row
  • Next by thread: Re: Undocumented preparedCellAtColumn:-1 row:row
  • Index(es):
    • Date
    • Thread