mouse events in Xcode-generated AudioUnit project
mouse events in Xcode-generated AudioUnit project
- Subject: mouse events in Xcode-generated AudioUnit project
- From: Howard Moon <email@hidden>
- Date: Wed, 16 Feb 2011 07:36:48 -0800
Hi all,
in an AudioUnit effect project created in Xcode, it generates a simple slider class for manipulating the gain parameter. In the comments of the view class, it says the following:
We create our own custom subclass of NSSlider so we can do begin/end gesture notification We cannot override mouseUp: because it will never be called. Instead we do a clever trick in mouseDown to send mouseUp notifications
I'm not sure what this means. From everything I've been reading, it's perfectly normal to override both mouseDown and mouseUp. Why would mouseUp never be called? It's apparently related to the comments inside the mouseDown event handler that say that [super mouseDown:event] will not return until tracking is done. Why would that be the case?
Also, what are the NSNotificationCenter calls and callbacks for? (Is there a help or online doc that explains this template code?)
Thanks, Howard
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden