Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-07 Thread Gustavo Pizano
David hello. I didn't use blocks, in order to support 3.2, just in case, you never know who is out there still using it. so I sue normal [NSObject performSelectorOnThread methods,.. Now I divided the Saving operation and the thumbnail creation in 2 separate threads, the thumbnail is inside th

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-07 Thread David Reed
On Dec 7, 2010, at 3:16 AM, Gustavo Pizano wrote: > Hello Guys.. > > I see, I have been using GCD and blocks but on somme OSX app I did before, > not on iPhone, I tough tit wasn't there... :P. Blocks/GCD are in iOS 4.0 and higher. Assuming you have a paid developer account, you may want to

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-07 Thread Gustavo Pizano
Hello Guys.. I see, I have been using GCD and blocks but on somme OSX app I did before, not on iPhone, I tough tit wasn't there... :P. SO, I from within the method( block) that makes all the saving process, I do something like >> dispatch_async(dispatch_get_main_queue(), ^{ >> /

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread davelist
On Dec 6, 2010, at 9:21 PM, Laurent Daudelin wrote: > On Dec 6, 2010, at 17:16, davel...@mac.com wrote: > >> On Dec 6, 2010, at 5:37 PM, Gustavo Pizano wrote: >> >>> Hello. >>> >>> My application is saving some data, and it takes a while to do it, it can >>> be 1 second to 10 sec around.. Im

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/6/10 6:21 PM, Laurent Daudelin wrote: >> dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, >> 0), ^{ // code you want implemented on another thread goes here: >> >> dispatch_async(dispatch_get_main_queue(), ^{ // code exe

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread Laurent Daudelin
On Dec 6, 2010, at 17:16, davel...@mac.com wrote: > On Dec 6, 2010, at 5:37 PM, Gustavo Pizano wrote: > >> Hello. >> >> My application is saving some data, and it takes a while to do it, it can be >> 1 second to 10 sec around.. Im doing some image processing, The thing is.. >> >> I send the s

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread davelist
On Dec 6, 2010, at 5:37 PM, Gustavo Pizano wrote: > Hello. > > My application is saving some data, and it takes a while to do it, it can be > 1 second to 10 sec around.. Im doing some image processing, The thing is.. > > I send the saving operation in another thread using the NSThread + > de

Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread Gustavo Pizano
Hello. My application is saving some data, and it takes a while to do it, it can be 1 second to 10 sec around.. Im doing some image processing, The thing is.. I send the saving operation in another thread using the NSThread + detachNewThreadSelector:toTarget:withObject: method, and in the mai