• 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: NSURL fileURLWithPath doesn't produce a valid URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL fileURLWithPath doesn't produce a valid URL


  • Subject: Re: NSURL fileURLWithPath doesn't produce a valid URL
  • From: Alexander Bokovikov <email@hidden>
  • Date: Fri, 31 Jul 2009 15:23:50 +0600


On 31.07.2009, at 14:57, Dave Keck wrote:

I'm confused:

NSLog(@"%@", CFURLCreateStringByAddingPercentEscapes(nil,
CFSTR("http://www.example.com?a+b & c = d"), nil, CFSTR("+=&"),
kCFStringEncodingUTF8));

That doesn't do what you want?

I've misunderstood. It was said "do it yourself" in the previous answer, but not "use CFURLCreateStringByAddingPercentEscapes with the necessary characters, included into the fourth argument", so I thought this function doesn't do what I need. Of course, I was not too careful when I read its description, where it was said, that fourth argument is just for my case.


Thanks.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSURL fileURLWithPath doesn't produce a valid URL (From: Alexander Bokovikov <email@hidden>)
 >Re: NSURL fileURLWithPath doesn't produce a valid URL (From: Dave Keck <email@hidden>)
 >Re: NSURL fileURLWithPath doesn't produce a valid URL (From: Alexander Bokovikov <email@hidden>)
 >Re: NSURL fileURLWithPath doesn't produce a valid URL (From: Richard Frith-Macdonald <email@hidden>)
 >Re: NSURL fileURLWithPath doesn't produce a valid URL (From: Alexander Bokovikov <email@hidden>)
 >Re: NSURL fileURLWithPath doesn't produce a valid URL (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Diagramming (a bit OT)
  • Next by Date: Re: NSString and regular expressions
  • Previous by thread: Re: NSURL fileURLWithPath doesn't produce a valid URL
  • Next by thread: How to set the name of open-with application for a specific file?
  • Index(es):
    • Date
    • Thread