Re: NSMatrix selectedRow, selectedColumn
Re: NSMatrix selectedRow, selectedColumn
- Subject: Re: NSMatrix selectedRow, selectedColumn
- From: Graham Cox <email@hidden>
- Date: Sat, 21 Aug 2010 19:37:27 +0200
On 21/08/2010, at 7:19 PM, email@hidden wrote:
> - (void)mouseDown:(NSEvent *)theEvent {
>
>
> NSLog(@"r %d c %d", [self selectedRow], [self selectedColumn]);
> }
Since you've completely overridden the standard -mouseDown: event handling, NSMatrix is unable to process the click into a selected row and column, Try calling super's implementation prior to logging the result. It's also possible that the result is not available until mouseUp.
--Graham
_______________________________________________
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