Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding custom string encodings to NSString/CFString



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.

References: 
 >Re: Adding custom string encodings to NSString/CFString (From: Andrew Pinski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.