Re: NSURL Blocking
Re: NSURL Blocking
- Subject: Re: NSURL Blocking
- From: Paul Nelson <email@hidden>
- Date: Tue, 17 Sep 2002 18:29:53 -0400
Are you using
[yourURL loadResourceDataNotifyingClient:usingCache:]
or
NSURLHandle *urlHandle;
urlHandle = [[yourURL URLHandleUsingCache:NO] retain];
[urlHandle addClient:<client-object>];
[urlHandle loadInBackground];
to download URLs in the background?
Paul
on 9/17/02 6:58 PM, Mark Levin at email@hidden wrote:
>
I am trying to use NSURL to asynchronously load data, but it's not
>
cooperating. No matter how I try to isolate the download operation, it
>
*always* blocks just a little bit, making my interface stutter
>
noticeably. It is still doing this even after moved into a pthread
>
(with its own runloop) and controlled with
>
performSelector:withObject:afterDelay: (and a middleman object). Is
>
there any way to use NSURL in such a way that "background" loads are
>
100% nonblocking?
>
>
>
--Mark
>
>
"Oooh, what's that??" "That's a light switch." "Oh." "...of TOTAL
>
DEVASTATION!"
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
Paul Nelson
Peabody Student Composer
http://www.peabody.jhu.edu/~pnelson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.