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 protected] 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 protected])

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

This email sent to [email protected]

Reply via email to