Re: Executing a very low-priority operation in iOS

2012-04-25 Thread Rick Mann
On Apr 25, 2012, at 17:50 , Julius Oklamcak wrote: >> Normally I'd set up a timer to fire in a minute, set up an > NSBlockOperation, >> and let it go. When it finishes, I'd repeat the process. But I don't see > any >> way to adjust the priority of an NSOperationQueue. > > NSBlockOperation inheri

RE: Executing a very low-priority operation in iOS

2012-04-25 Thread Julius Oklamcak
> Normally I'd set up a timer to fire in a minute, set up an NSBlockOperation, > and let it go. When it finishes, I'd repeat the process. But I don't see any > way to adjust the priority of an NSOperationQueue. NSBlockOperation inherits from NSOperation so you should be able to -setQueuePriority:

Executing a very low-priority operation in iOS

2012-04-25 Thread Rick Mann
We have an app whose main function (on the main runloop) operates on a timer at about 30 Hz (eventually triggering a display update). We want to run a separate period function on the order of once a minute. The operation itself is lengthy, and I want it to not impact the main function of the ap