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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to