Using ^ symbol in NSURL
Using ^ symbol in NSURL
- Subject: Using ^ symbol in NSURL
- From: Zak Koan <email@hidden>
- Date: Mon, 18 Sep 2006 17:57:20 +1000
Hello,
I'm having trouble with NSURLs containing the ^ symbol - they seem to
be just null.
The following code will get the stock price for Apple from Yahoo in
the form of a CSV file, which I then parse:
NSString *string = [NSString stringWithContentsOfURL:[NSURL
URLWithString:@"http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=snl1"]];
It works great, however when trying to get the Dow Jones price
(ticker symbol ^DJI) the same way, string will just end up 0x0,
despite the URL working fine in Safari:
NSString *string = [NSString stringWithContentsOfURL:[NSURL
URLWithString:@"http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=snl1"]];
Any ideas?
Thanks so much,
Zak
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden