Re: NSMatrix selectedRow, selectedColumn
Re: NSMatrix selectedRow, selectedColumn
- Subject: Re: NSMatrix selectedRow, selectedColumn
- From: email@hidden
- Date: Sat, 21 Aug 2010 14:36:58 -0600
Do I have egg on my face or what ... thanks Graham
On Aug 21, 2010, at 11:37 AM, Graham Cox wrote:
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