Re: getting NSTableView -selectedColumn or -selectedCell
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