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
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
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(), ^{
>> /
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
-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
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
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
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