Problem with mouse events in a custom NSControl subclass
Problem with mouse events in a custom NSControl subclass
- Subject: Problem with mouse events in a custom NSControl subclass
- From: Stephen Blinkhorn <email@hidden>
- Date: Fri, 11 Dec 2009 17:57:13 -0600
Hello all,
Reasonably descriptive title. I'm writing the Cocoa GUI for an audio
unit plugin and I've run into a problem. In one host app I'm not
receiving mouse events in my custom sliders/buttons etc. My drop down
menus work fine but they are subclasses of NSPopUpMenu and
NSPopUpMenuCell. The sliders are just NSControl subclasses. If I
click on a text field then the containing window gets the focus and
all my controls work as expected. I think the host should be setting
the containing window's focus but it isn't and other plugins work ok
in that host.
Curiously, my controls receive mouse wheel events without problems and
standard NSSlider controls work too. So I suppose my question is:
what are NSPopUpMenu and NSSlider doing to receive mouse events that
I'm not doing? Any ideas? Also, double clicks are registering mouse
events to some extent.
Thanks,
Stephen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden