• 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: dataWithContentsOfURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: dataWithContentsOfURL (From: Marc Laffitte <email@hidden>)

  • Prev by Date: RE: Mac OS X Developer's Guide - another opinion
  • Next by Date: Re: Mac OS X Developer's Guide - another opinion
  • Previous by thread: Re: dataWithContentsOfURL
  • Next by thread: Re: dataWithContentsOfURL
  • Index(es):
    • Date
    • Thread