Re: [NSString stringWithContentsOfURL:] question
Re: [NSString stringWithContentsOfURL:] question
- Subject: Re: [NSString stringWithContentsOfURL:] question
- From: Scott Anguish <email@hidden>
- Date: Thu, 13 Feb 2003 15:19:07 -0500
The problem is that stringWithContentsofURL: only works with file://
scheme URLS, and not with http or the other schemes
You'll need to use NSURL to download the data, convert the NSData to an
NSString and then go to town.
On Thursday, February 13, 2003, at 01:34 PM, Marc Weil wrote:
That file doesn't exist because I can't give the URL to the *real*
script.
It's secret :-D. So I just typed in a fake one.
The reason why I thought it was expecting an NSString in the file is
people
stringWithContentsOfURL seems to parallel stringWithContentsOfFile.
Maybe
I'll try to access the text file directly rather than going through a
script
to see if that works. At least then I will be able to tell whether it
is a
problem with the Perl script or a problem with receiving plaintext
using
NSString.
_______________________________________________
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.