• 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
stringByAddingPercentEncodingWithAllowedCharacters: and friends
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stringByAddingPercentEncodingWithAllowedCharacters: and friends


  • Subject: stringByAddingPercentEncodingWithAllowedCharacters: and friends
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 11 Jan 2014 11:41:35 +1100

The Mavericks Foundation release notes say:

> Added -stringByAddingPercentEncodingWithAllowedCharacters: and -stringByRemovingPercentEncoding. -stringByAddingPercentEncodingWithAllowedCharacters: is intended to percent-encode an URL component or subcomponent string, NOT the entire URL string. The predefined NSCharacters sets returned by +URLUserAllowedCharacterSet, +URLPasswordAllowedCharacterSet, +URLHostAllowedCharacterSet, +URLPathAllowedCharacterSet, +URLQueryAllowedCharacterSet, and +URLFragmentAllowedCharacterSet are intended to be passed to -stringByAddingPercentEncodingWithAllowedCharacters:.

I can't see the NSString methods in NSString.h, and the "predefined NSCharacters sets" aren't listed in the class reference for NSCharacterSet, nor in NSCharacterSet.h. Anyone know where they live?

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


_______________________________________________

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: stringByAddingPercentEncodingWithAllowedCharacters: and friends
      • From: Greg Parker <email@hidden>
    • Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: NSMapTable with weak refs on 10.7
  • Next by Date: Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends
  • Previous by thread: Re: NSMapTable with weak refs on 10.7
  • Next by thread: Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends
  • Index(es):
    • Date
    • Thread