Get an escape sequence out of an NSString
Get an escape sequence out of an NSString
- Subject: Get an escape sequence out of an NSString
- From: Alex Kac <email@hidden>
- Date: Fri, 13 Aug 2010 22:05:09 -0500
Given an NSString @"\ue001" like this, how does one get the value into an NSInteger so that its equal to 0xe001? I've tried converting it to an NSData with an encoding of NSUTF16BigEndianStringEncoding, but I'm not getting what I expect. Experience has taught me that usually its because I'm being dumb. So trying to get out of being dumb, I'm asking for help.
_______________________________________________
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