Re: Operations Beachball

2012-12-05 Thread Joar Wingfors
What happens if you remove the isCancelled checks? How do you create your operation queue? What is the max concurrent operation count of the queue? If NSOperationQueueDefaultMaxConcurrentOperationCount, what happens if you set it to (processorCount) instead? When you take a CPU sample of the

Re: Operations Beachball

2012-12-05 Thread Gerriet M. Denkmann
On 5 Dec 2012, at 15:57, Joar Wingfors j...@joar.com wrote: What happens if you remove the isCancelled checks? No effect on blocking. How do you create your operation queue? if ( self.operationQueue == nil ) { self.operationQueue = [ [

Re: Operations Beachball

2012-12-05 Thread James Montgomerie
On 4 Dec 2012, at 18:29, Jens Alfke j...@mooseyard.com wrote: On Dec 4, 2012, at 3:48 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains

Re: Operations Beachball

2012-12-05 Thread Jens Alfke
On Dec 4, 2012, at 11:46 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: When I add 8 or more operations to NSOperationQueue (using NSOperationQueueDefaultMaxConcurrentOperationCount concurrent ops) , - then switch to some other app, - then try to make my app active again, I get a

Operations Beachball

2012-12-04 Thread Gerriet M. Denkmann
My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains responsive, but sometimes it is not. A sure way to beach-ball my app is: start it with a few hundred operations (which will take about 20 seconds to

Re: Operations Beachball

2012-12-04 Thread Mike Abdullah
You have a performance problem. Thus you should use Instruments to see what is going on, rather than hope we can tell you from vague snippets of code. On 4 Dec 2012, at 10:29, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts

Re: Operations Beachball

2012-12-04 Thread Gerriet M. Denkmann
On 4 Dec 2012, at 17:49, Mike Abdullah cocoa...@mikeabdullah.net wrote: You have a performance problem. Thus you should use Instruments to see what is going on, rather than hope we can tell you from vague snippets of code. Maybe I should use Instruments, problem is: I cannot. I start

Re: Operations Beachball

2012-12-04 Thread Roland King
Can you not run Instruments from the 'Profile' button on Xcode? It should start the process and attach to it and go from there. On 4 Dec, 2012, at 7:02 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 4 Dec 2012, at 17:49, Mike Abdullah cocoa...@mikeabdullah.net wrote: You have a

Re: Operations Beachball

2012-12-04 Thread jonat...@mugginsoft.com
On 4 Dec 2012, at 10:29, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains responsive, but sometimes it is not. A sure way to beach-ball my app

Re: Operations Beachball

2012-12-04 Thread Gerriet M. Denkmann
On 4 Dec 2012, at 18:10, Roland King r...@rols.org wrote: Can you not run Instruments from the 'Profile' button on Xcode? It should start the process and attach to it and go from there. I got the Leaks Instrument to work this way (no Leaks) But all other Instruments just prompted

Re: Operations Beachball

2012-12-04 Thread Gerriet M. Denkmann
On 4 Dec 2012, at 18:31, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: On 4 Dec 2012, at 10:29, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the

Re: Operations Beachball

2012-12-04 Thread jonathan
On 4 Dec 2012, at 11:48, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 4 Dec 2012, at 18:10, Roland King r...@rols.org wrote: Can you not run Instruments from the 'Profile' button on Xcode? It should start the process and attach to it and go from there. I got the Leaks

Re: Operations Beachball

2012-12-04 Thread Jens Alfke
On Dec 4, 2012, at 3:48 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains responsive, but sometimes it is not. Welcome to the joys of

Re: Operations Beachball

2012-12-04 Thread Charles Srstka
On Dec 4, 2012, at 4:29 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains responsive, but sometimes it is not. A sure way to beach-ball my app

Re: Operations Beachball

2012-12-04 Thread Gerriet M. Denkmann
On 5 Dec 2012, at 01:29, Jens Alfke j...@mooseyard.com wrote: On Dec 4, 2012, at 3:48 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue. I would expect that the app thus remains