Re: Adding custom string encodings to NSString/CFString
Re: Adding custom string encodings to NSString/CFString
- Subject: Re: Adding custom string encodings to NSString/CFString
- From: Chris Ridd <email@hidden>
- Date: Thu, 25 Jul 2002 15:25:18 +0100
On 25/7/02 2:59 pm, Andrew Pinski <email@hidden> wrote:
>
What about converting the string to know encoding like UTF-8
>
in a function that returns CFString/NSString*?
>
And also a function to convert from UTF-8 to the "custom" encoding?
That's my fallback position, but it doesn't feel elegant somehow. For one,
it loses functionality that's in NSString (ie NSString remembers the
original encoding and can therefore write the value using the original
encoding. IIRC.) It doesn't seem very object-oriented.
I just added a category to NSData to do hashing and encryption and was
stunned by the elegance of that, so I sort of expected something equally
cool :-)
Cheers,
Chris
_______________________________________________
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.