• 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 13:34:13 +0600


On 31.07.2009, at 11:51, Dave Keck wrote:

Check out CFURLCreateStringByAddingPercentEscapes(), and note that
CFURL is toll-free bridged with NSURL.

Just have tried it. No difference. I've used:

surl = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
spath,
NULL,
NULL,
kCFStringEncodingUTF8);
where spath was the source string with "+" signs. I've set NULL's, as it was described (at least as I've understood what was written) to escape any possible characters. Is "+" sign not considered by Apple, as a character, which requires escaping?


In my opinion, all codes since 0x20 to 0x2F require escaping. Am I incorrect?

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


  • Follow-Ups:
    • 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: Kyle Sluder <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>)

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