• 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: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?


  • Subject: Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?
  • From: Gerben Wierda <email@hidden>
  • Date: Sat, 2 Mar 2002 23:53:56 +0100

On Saturday, March 2, 2002, at 11:04 , Finlay Dobbie wrote:

So instead of doing [aURL loadResourceDataNotifyingClient:usingCache:], do

NSURLHandle *aURLHandle = [aURL URLHandleUsingCache:YES];
[aURLHandle addClient:self];
[aURLHandle beginLoadInBackground];
...
[aURLHandle cancelLoadInBackground];

All conceptual code, might not compile :-)

I was afraid this would be the answer. The sad result is that I now have to rewrite my code because NSURLHandle uses a different protocol from NSURL for the client reacting to messages about the download.

G
_______________________________________________
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.

References: 
 >Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: path to application
  • Next by Date: Re: The Project From A Faraway Land
  • Previous by thread: Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?
  • Next by thread: The Project From A Faraway Land
  • Index(es):
    • Date
    • Thread