Re: -clickedRow

2015-11-06 Thread Charles Srstka
> 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

Re: -clickedRow

2015-11-06 Thread corbin dunn
> 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

Re: -clickedRow

2015-11-06 Thread Raglan T. Tiger
> 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

Re: -clickedRow

2015-11-05 Thread Jens Alfke
> 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