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: cricket <email@hidden>
- Date: Wed, 19 May 2004 17:29:54 -0700
The problem (at least the one I had) is that by not calling [super
mouseDown], you then have to manually manage selections and manually
handle drag and drop, which is somewhat unfun.
- cricket
On May 19, 2004, at 4:08 PM, John Randolph wrote:
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..
_______________________________________________
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.