Re: GUI threading question

2009-02-02 Thread Kyle Sluder
On Mon, Feb 2, 2009 at 10:49 AM, wrote: > It has long been my understanding that in order to keep a GUI from > freezing in Cocoa during LONG methods you have to create a > NSOperationQueue and load the method as a NSInvocationOperation as seen > here: You don't have to use NSOperationQueue. You

Re: GUI threading question

2009-02-02 Thread Michael Ash
On Mon, Feb 2, 2009 at 11:03 AM, Scott Ribe wrote: >> It has long been my understanding that in order to keep a GUI from >> freezing in Cocoa during LONG methods you have to create a >> NSOperationQueue and load the method as a NSInvocationOperation as seen > > No, you have to run the long operati

Re: GUI threading question

2009-02-02 Thread Scott Ribe
> It has long been my understanding that in order to keep a GUI from > freezing in Cocoa during LONG methods you have to create a > NSOperationQueue and load the method as a NSInvocationOperation as seen No, you have to run the long operations on another thread. NSOperationQueue is supposed to pro

GUI threading question

2009-02-02 Thread jurincie
It has long been my understanding that in order to keep a GUI from freezing in Cocoa during LONG methods you have to create a NSOperationQueue and load the method as a NSInvocationOperation as seen here: - (IBAction)launchBigTask:(id)sender { NSInvocationOperation* theOp = [[NSInvocationOp