• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURL Blocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSURL Blocking
      • From: Mark Levin <email@hidden>
References: 
 >NSURL Blocking (From: Mark Levin <email@hidden>)

  • Prev by Date: NSPopUpButtonCells in TableView
  • Next by Date: Re: Obj-C question: protocol usage and inheritance
  • Previous by thread: NSURL Blocking
  • Next by thread: Re: NSURL Blocking
  • Index(es):
    • Date
    • Thread