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

Re: getting NSTableView -selectedColumn or -selectedCell


  • Subject: Re: getting NSTableView -selectedColumn or -selectedCell
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 07 Jan 2009 12:35:17 -0800

howdy,

There is no "selected cell" -- only a selected row or column, which can contain one or more cells. Do you mean the focused cell, as in tabb'ed into on SnowLeopard?

Or, what are you trying to do? I may be able to offer advice.

corbin


On Jan 7, 2009, at 10:28 AM, Barton Wells wrote:

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


References: 
 >getting NSTableView -selectedColumn or -selectedCell (From: Barton Wells <email@hidden>)

  • Prev by Date: Re: Crash as NSPersistentDocument creates its persistence stack
  • Next by Date: Re: "Cannot finalize a class object"
  • Previous by thread: getting NSTableView -selectedColumn or -selectedCell
  • Next by thread: NSScrollView refuses to scroll
  • Index(es):
    • Date
    • Thread