Re: mouse events in Xcode-generated AudioUnit project
Re: mouse events in Xcode-generated AudioUnit project
- Subject: Re: mouse events in Xcode-generated AudioUnit project
- From: Kyle Sluder <email@hidden>
- Date: Wed, 16 Feb 2011 08:48:27 -0800
On Wed, Feb 16, 2011 at 7:36 AM, Howard Moon <email@hidden> wrote:
> 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?
http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/EventOverview/HandlingMouseEvents/HandlingMouseEvents.html#//apple_ref/doc/uid/10000060i-CH6-SW18
> Also, what are the NSNotificationCenter calls and callbacks for? (Is there
> a help or online doc that explains this template code?)
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Notifications/Articles/NotificationCenters.html
General Cocoa questions belong on the cocoa-dev list. But I'd suggest
picking up some Cocoa reference material first and searching the
documentation before asking.
--Kyle Sluder
_______________________________________________
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