• 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 14:41:30 -0800


On Feb 25, 2008, at 14:06, Adam Gerson wrote:

Those methods return NSInteger's. To get a reference to the
NSTableColumn you should call something like

int column = [[yourTableView selectedColumn] intValue];
NSTableColumn myColumn = [[yourTableView tableColumns] objectAtIndex:column];

It looks you're suggesting I send an intValue message to a NSInteger. That wouldn't work. :)


What I was asking about is whether (for example, and assuming a column is selected)

	[[tableView tableColumns] objectAtIndex: [tableView selectedColumn]]

is in fact the NSTableColumn that's selected. It seems likely, but the documentation does not say, that the order of the NSTableColumns in [NSTableView tableColumns] is the same as the current visible order of the columns in the table.

_______________________________________________

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

  • Prev by Date: Re: Chaging NSStatusItem menus.
  • Next by Date: Drawing to a PDF image representation
  • Previous by thread: Re: Table column index
  • Next by thread: Re: Table column index
  • Index(es):
    • Date
    • Thread