stringByAddingPercentEncodingWithAllowedCharacters: and friends
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