Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
- Subject: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
- From: m <email@hidden>
- Date: Sun, 9 May 2004 16:00:50 -0700
On May 9, 2004, at 3:29 PM, cricket wrote:
If I create an NSView subclass, and override mouseDown: and mouseUp:
as follows, I receive both NSLogs when I click in the view:
- (void)mouseDown:(NSEvent *)theEvent {
NSLog(@"mousedown");
[super mouseDown:theEvent];
}
- (void)mouseUp:(NSEvent *)theEvent {
NSLog(@"mouseup");
[super mouseUp:theEvent];
}
However, if I create an NSTableView subclass, and override these same
two methods, I only get the NSLog for the mouseDown: call. Anyone know
why this is? I can't find anything in the documentation to explain
this.
My guess would be that NSTableView is tracking the mouse so the user
can do drag-select or drag-n-drop. The tracking code is swallowing the
mouseUp.
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.