• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding custom string encodings to NSString/CFString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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

  • Prev by Date: Re: Programmatic layout and creating round buttons?
  • Next by Date: Re: What is the purpose of static typing?
  • Previous by thread: Re: Adding custom string encodings to NSString/CFString
  • Next by thread: NSTableView rows and delete key
  • Index(es):
    • Date
    • Thread