• 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
Re: MusicSequencerUserCallback - calling objective-c method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicSequencerUserCallback - calling objective-c method


  • Subject: Re: MusicSequencerUserCallback - calling objective-c method
  • From: Paul Davis <email@hidden>
  • Date: Wed, 8 Dec 2010 16:05:22 -0500

On Wed, Dec 8, 2010 at 3:57 PM, GW Rodriguez <email@hidden> wrote:
> So I was putting together a basic app that needs to use the user event, ergo
> it needs to use the callback function.  I would like to have the callback
> function call a obj-c method, but I cant seem to do this.  I even tried
> changed the file to .mm and all I get are errors.
> Can someone bestow their experience and knowledge on my as to how to call a
> obj-c method in a c++ function?

write a static C++ function or method, use that as the callback. call
the obj-C method from within it.
be careful about using obj-C in realtime contexts, it can lead to
glitches in the audio stream.
 _______________________________________________
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

References: 
 >MusicSequencerUserCallback - calling objective-c method (From: GW Rodriguez <email@hidden>)

  • Prev by Date: MusicSequencerUserCallback - calling objective-c method
  • Next by Date: Re: MusicSequencerUserCallback - calling objective-c method
  • Previous by thread: MusicSequencerUserCallback - calling objective-c method
  • Next by thread: Re: MusicSequencerUserCallback - calling objective-c method
  • Index(es):
    • Date
    • Thread