NSTableView double click binding and clickedRow
NSTableView double click binding and clickedRow
- Subject: NSTableView double click binding and clickedRow
- From: Paul Thomas <email@hidden>
- Date: Tue, 18 Mar 2008 20:59:23 +0000
I have an NSTableView (multiple selection, not editable) and I want to
do something with the elements of the displayed list when the user
double clicks. Even though the table has multiple selection, I only
want to action the single element that the user double-clicked.
If I set up a target/action message using setTarget: and
setDoubleAction:, everything works fine and I can get clickedRow to
tell me the row.
If I use bindings in IB3 and bind "Double Click Target", I get the
action message, but clickedRow is always -1.
So, is this a bug? If so, I'll radar it. But I wanted to check if this
is expected behaviour because of something special about bindings.
ta,
pt.
_______________________________________________
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