• 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
Using ^ symbol in NSURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Is it archiving/unarchiving NSBezierPath object to disk a performance issue?.
  • Next by Date: NSView in a toolbar item
  • Previous by thread: Re: Is it archiving/unarchiving NSBezierPath object to disk a performance issue?.
  • Next by thread: Re: Using ^ symbol in NSURL
  • Index(es):
    • Date
    • Thread