Re: MouseDown of superclass
Re: MouseDown of superclass
- Subject: Re: MouseDown of superclass
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 20 Mar 2003 10:25:11 -0800
On Thursday, March 20, 2003, at 03:23 AM, Tobias Hermann wrote:
hi!
I have a subclass of NSBrowser. In that subclass, I override the
mouseDown, mouseUp and mouseDragged method, in order to alter it's
behaviour for some situations (not for all!). For the things I want to
let handle the original NSBrowser, I call [super mouseXXXX: event];
(down, dragged or up).
Now something strange happens:
When I call [super mouseDown: event]; within my own mouseDown method,
i get no mouseDragged or mouseUp events anymore... It seems that the
super class NSBrowser grabs the control of the program within its
mouseDown method UNTIL THE MOUSE BUTTON IS RELEASED!
That's correct. NSBrowser grabs the event loop in -mouseDown:. Many
of the older NSControl subclasses in the AppKit do this.
If this is impeding your work, please file a bug/enhancement request at
bugreporter.apple.com
-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.