Re: Hex codes in plists
Re: Hex codes in plists
- Subject: Re: Hex codes in plists
- From: Clark Cox <email@hidden>
- Date: Mon, 3 Nov 2003 15:00:26 -0500
On Nov 03, 2003, at 14:16, Glen Simmons wrote:
>
I have some string resources that I've put into plists for easy
>
loading and accessing. The problem is that quite a few of the string
>
resources include hex values, i.e. "Foo" = "\x42\x12bar". I sort of
>
assumed that these would be magically transformed when the
>
+dictionaryWithContentsOfFile: call created all the NSStrings. Not so.
>
Any suggestions on how best to deal with these?
>
>
Second question: In trying to deal with this, I had the bright idea of
>
using -rangeOfString:@"\x" and handling it in code. XCode doesn't like
>
this at all, thinking it's supposed to be a hex value. How to get
>
around this?
use @"\\x" instead
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.