NSTableView right clicked row
NSTableView right clicked row
- Subject: NSTableView right clicked row
- From: chaitanya pandit <email@hidden>
- Date: Wed, 29 Oct 2008 01:41:12 +0530
Hi list,
I have a NSTableView, and i display a menu when the user right clicks
a row, this menu allows the user to delete that item.
My problem is, how do i get the row which was right clicked?
Consider this: currently the row#1 is selected and the user right
clicks row#3 the row#3's cell will have a blue border,
now in the right click's menu's action method if i call [tableview
selectedRow]; it'll return "1" where as what i want is "3"
How do i identify the row that was right clicked?
Thanks
Chaitanya
_______________________________________________
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