• 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: Table column index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table column index


  • Subject: Re: Table column index
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 25 Feb 2008 16:41:13 -0800


On Feb 25, 2008, at 15:12, glenn andreas wrote:

And it actually hints to the contrary, since -tableColumns is document to include the hidden columns as well (and doesn't say if they are at the end or in the middle)

I just tried it, and the column numbers seem to match up with the array indexes even when a column is hidden.


By adapting the practice of using the column identifier, not only do you get past this problem, you won't have any problem if you allow the user to re-order columns.

I would if I could, but I'm subclassing NSTableColumn and I can't really assume that an instance either has an identifier, or has a unique identifier, and either of those cases will make columnWithIdentifier unreliable. (I'm trying to have the column get its index so that it can call rectForColumn.)



_______________________________________________

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: Table column index
      • From: Corbin Dunn <email@hidden>
References: 
 >Table column index (From: Quincey Morris <email@hidden>)
 >Re: Table column index (From: "Adam Gerson" <email@hidden>)
 >Re: Table column index (From: Quincey Morris <email@hidden>)
 >Re: Table column index (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: NSBorderlessWindowMask and NSResizableWindowMask
  • Next by Date: - outlineView:willDisplayCell:forTableColumn:item: and selected item
  • Previous by thread: Re: Table column index
  • Next by thread: Re: Table column index
  • Index(es):
    • Date
    • Thread