> On Nov 5, 2015, at 12:51 PM, Jens Alfke <j...@mooseyard.com> wrote:
> 
> 
>> On Nov 5, 2015, at 12:35 PM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
>> 
>> In -rightMouseDown I call [self clickedRow] which always returns -1 in a row 
>> or not in row
> 
> Yeah, you’re getting control before the base class has had a chance to set 
> the clickedRow property. (Have you tried calling the superclass method first? 
> That might help.)

Plus, NSTableView only sets it on mouseDown:. (well, it does it at a few other 
key points, but not rightMouseDown)

corbin

> 
>> What should I be doing to get the clicked row?
> 
> Convert the position to local coords, then call -rowAtPoint:.
> 
> —Jens
> _______________________________________________
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com
> 
> This email sent to corb...@apple.com


_______________________________________________

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

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

Reply via email to