Re: When can I start timer for my AudioUnit view?
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