Re: NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Jens Alfke
> On Nov 14, 2017, at 4:43 PM, Nathan Day wrote: > > The background app is kept alive by launchd as a User Agent and looks for new > resources to be downloaded periodically If this is a launchd agent, you can configure its plist so it gets launched periodically. That way

Re: NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Quincey Morris
On Nov 14, 2017, at 16:57 , Quincey Morris wrote: > > I would suggest you try setting the QoS to at least “utility”, perhaps even > “user initiated”. To clarify: *what* you set to a different QoS depends on the nature of the thing you described as a

Re: NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Quincey Morris
On Nov 14, 2017, at 16:43 , Nathan Day wrote: > > I have a background process that uses an NSTimer that is set to fire every > minute, but when the computer is inactive for a while it will stop firing My guess is that it’s not a problem with the timer, but with the quality

Re: NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Nathan Day
I should make it clear, this is a Mac OS X application. Nathan Day On 14 Nov, 2017, at 01:43 PM, Nathan Day wrote: I have a background process that uses an NSTimer that is set to fire every minute, but when the computer is inactive for a while it will stop firing, its

NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Nathan Day
I have a background process that uses an NSTimer that is set to fire every minute, but when the computer is inactive for a while it will stop firing, its not until someone interacts with the computer the timer will start firing again. The timer is added to the main NSRunLoop, maybe the

NSTimer not firing

2009-08-09 Thread kentozier
Hi I'm running an NSInvocationOperation in an NSOperationQueue and set up a listener for the operation's isFinished notification. My observeValueForKeyPath method is getting called when the operation finishes, but I'm finding that when I try to create a timer inside observeValueForKeyPath,

Re: NSTimer not firing

2009-08-09 Thread Alastair Houghton
On 9 Aug 2009, at 16:56, kentoz...@comcast.net wrote: I'm running an NSInvocationOperation in an NSOperationQueue and set up a listener for the operation's isFinished notification. My observeValueForKeyPath method is getting called when the operation finishes, but I'm finding that when I

Re: NSTimer not firing

2009-08-09 Thread Jerry Krinock
On 2009 Aug 09, at 09:26, Alastair Houghton wrote: I think the problem, therefore, is that you're trying to schedule your timer on the wrong thread (I guess you're expecting it to be scheduled on your app's main thread)? The performSelectorOnMainThread::: methods are your friend in