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: John Randolph <email@hidden>
- Date: Wed, 19 May 2004 16:08:59 -0700
On May 9, 2004, at 3:46 PM, Allan Odgaard wrote:
On 10. May 2004, at 0:29, cricket wrote:
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.
Probably the superclass will setup a local event loop in mouseDown. I
think several of the view classes do this.
That is exactly what's going on. If you want to implement -mouseDown:
and -mouseUp:, don't call [super mouseDown:].
This is one of those things that should probably be fixed, but fixing
it would break too many existing apps..
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.