Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?
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.