NSTimer and -[NSObject performSelector:withObject:afterDelay:] in the background?
NSTimer and -[NSObject performSelector:withObject:afterDelay:] in the background?
- Subject: NSTimer and -[NSObject performSelector:withObject:afterDelay:] in the background?
- From: Jim Correia <email@hidden>
- Date: Wed, 15 Feb 2006 13:59:39 -0500
I have an application which, upon receiving an apple event in the
background starts a timer with
[[NSTimer scheduledTimerWithTimeInterval: 0 target: self selector:
@selector(doPostProcessing:) userInfo: nil repeats: NO];
After executing the script, my timer doesn't fire until the app comes
to the foreground, or the mouse pointer moves into one of my apps
windows.
I've changed that code to use -performSelector:withObject:afterDelay:
to no avail (it has the same properties.)
Is this expected?
What is the proper way to run a delayed action in this scenario?
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden