• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mouse events in Xcode-generated AudioUnit project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: mouse events in Xcode-generated AudioUnit project
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: RE: problems setting default output device, DoInitializeWithObjectID
  • Next by Date: sequencer from callback
  • Previous by thread: RE: problems setting default output device, DoInitializeWithObjectID
  • Next by thread: Re: mouse events in Xcode-generated AudioUnit project
  • Index(es):
    • Date
    • Thread