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