Re: Avoiding UI hangs
Re: Avoiding UI hangs
- Subject: Re: Avoiding UI hangs
- From: Pascal Pochet <email@hidden>
- Date: Sun, 4 Sep 2005 13:12:42 +0200
If you are using CURLHandle, there is a loadInBackground method…
that do just what you want: detaching a thread to avoid UI hanging.
you specify a "client" (delegate) with addClient.
The client needs to implement the NSURLHandleClient
and will be called when specific events occur during the upload.
the example coming with CURLHandle shows how to do it.
Pascal Pochet
email@hidden
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
Le 04-sept.-05 à 11:19, Sanri Parov a écrit :
Hi everybody,
I'm doing an application for a customer of mine which requires the
capability to upload a file to a certain server.
The file is a pretty large database and I've managed to upload it
using
CURLHandle to a particular computer he wants to by simply clicking
on a
button in
the user interface.
The problem is that, after having clicked the upload button, the UI
hangs until it has completed the job and it gives me the "spinning
cursor of death".
I'd like to avoid it and make my customer able to continue it's work
without having to wait.
I've tried looking for detachNewThreadSelector: but nothing, and
nothing is given using [[NSAutoreleasePool alloc] init];
What can I do?
Many thanks for all the kind replies.
--
Sanri Parov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden