• 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
getting NSTableView -selectedColumn or -selectedCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting NSTableView -selectedColumn or -selectedCell


  • Subject: getting NSTableView -selectedColumn or -selectedCell
  • From: Barton Wells <email@hidden>
  • Date: Wed, 7 Jan 2009 10:28:57 -0800

I'm trying to get the selected cell of an NSTableView when selected by the user. I am using the delegate method tableViewSelectionDidChange: and within it have tried calling both - selectedColumn and I've tried -selectedCell. -selectedColumn always returns -1, and -selectedCell always returns null. Note that - selectedRow does return the proper row index. Is there a setting for the NSTableView that needs to be set? I've tried the delegate method tableView:shouldSelectTableColumn: and had it always returning YES, but this seems to only have an effect on the user selecting a column by clicking on the column header. Does anyone know why I might be getting null of -selectedCell and -1 for -selectedColumn all of the time?

Thanks,
Barton

_______________________________________________

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: getting NSTableView -selectedColumn or -selectedCell
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Dock menu item action isn't performed in modal state
  • Next by Date: Re: Accessing inputs in a quartz composition programatically
  • Previous by thread: Re: Dock menu item action isn't performed in modal state
  • Next by thread: Re: getting NSTableView -selectedColumn or -selectedCell
  • Index(es):
    • Date
    • Thread