• 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: When can I start timer for my AudioUnit view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When can I start timer for my AudioUnit view?


  • Subject: Re: When can I start timer for my AudioUnit view?
  • From: Iain McCowan <email@hidden>
  • Date: Fri, 25 Feb 2011 08:47:58 +1000

perhaps just because you're missing the colon on the end of the selector, ie:

... selector:@selector(onTimerEvent:) ...

hope that helps,

Iain.



On Fri, Feb 25, 2011 at 8:35 AM, Howard Moon <email@hidden> wrote:
Hi all,

I'm trying to set up an NSTimer in a class that manages the main NSView object (and its children) in an AudioUnit effect, but my timer is never firing.

I've currently set it up it in a method called from the view factory's uiViewForAudioUnit method, and it appears to create a valid timer.  But it never fires.  I don't know if that's because uiViewForAudioUnit is running in a different thread, or what.  Here's how I set up the timer:

idleTimer = [NSTimer timerWithTimeInterval:0.05 target:self selector:@selector(onTimerEvent) userInfo:NULL repeats:YES];

where onTimerEvent is another method of this same class (which is a direct NSObject descendant that creates the root NSView).  Here's its signature:

-(void)onTimerEvent:(NSTimer*)theTimer

Any thoughts?

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

 _______________________________________________
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: When can I start timer for my AudioUnit view?
      • From: Howard Moon <email@hidden>
References: 
 >When can I start timer for my AudioUnit view? (From: Howard Moon <email@hidden>)

  • Prev by Date: When can I start timer for my AudioUnit view?
  • Next by Date: Re: When can I start timer for my AudioUnit view?
  • Previous by thread: When can I start timer for my AudioUnit view?
  • Next by thread: Re: When can I start timer for my AudioUnit view?
  • Index(es):
    • Date
    • Thread