> On Nov 5, 2015, at 2:35 PM, Raglan T. Tiger wrote:
>
> I subclass NSTableView to catch -rightMouseDown
>
> In -rightMouseDown I call [self clickedRow] which always returns -1 in a row
> or not in row
>
> What should I be doing to get the clicked row?
If the reason you’re capturing right-c
> On Nov 5, 2015, at 12:51 PM, Jens Alfke wrote:
>
>
>> On Nov 5, 2015, at 12:35 PM, Raglan T. Tiger 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
> t
> On Nov 5, 2015, at 1:51 PM, Jens Alfke wrote:
>
> Convert the position to local coords, then call -rowAtPoint:.
I woke up last night and thought exactly that which I have used before ... must
be dementia on the rise !
-rags
___
Cocoa-dev maili
> On Nov 5, 2015, at 12:35 PM, Raglan T. Tiger 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 met