Re: dataWithContentsOfURL
Re: dataWithContentsOfURL
- Subject: Re: dataWithContentsOfURL
- From: Angela Brett <email@hidden>
- Date: Thu, 8 Nov 2001 23:18:22 +1300
Hi
You have to implement
- (void)URLResourceDidFinishLoading:(NSURL *)sender
{
// 'sender' is the NSURL object you used for starting donwload
// use sender to use your data. For instance:
NSDictionary * tDict = [NSDictionary
dictionaryWithContentsOfURL:sender];
// if the data you got is a dictionary, or any
xxxWithContentsOfURL message of your class of interest.
}
and the other related messages you are interested in, in the class
pointed by 'self'.
Aha! Thanks. I had implemented
- (void)URLHandleResourceDidFinishLoading:(NSURLHandle *)sender
with myData=[sender resourceData] in it, and was wondering why it
was never called. I guess I was just looking at the wrong part of the
docs, or misinterpreting them, or just generally completely lost.
--
Angela Brett email@hidden
http://acronyms.co.nz/angela
A mathematician is a machine for turning coffee into theorems -- Paul Erdos