Re: Unicode and NSTextField (newbie question)
Re: Unicode and NSTextField (newbie question)
- Subject: Re: Unicode and NSTextField (newbie question)
- From: Andreas Mayer <email@hidden>
- Date: Sat, 8 Mar 2003 09:41:14 +0100
Am Freitag, 07.03.03 um 19:59 Uhr schrieb Susan G. Conger:
Do you have to do anything special or is it all hidden? If I have a
dialog that has a text field that the user types data into how do I
make it so that text field accepts unicode?
AFAIK any Cocoa class that handles text will accept unicode
characters/strings.
The only time you need to worry about the character encoding is when
you leave Cocoa. Writing a special file format for instance. In that
case you use the - (NSData
*)dataUsingEncoding:(NSStringEncoding)encoding NSString method to get
the exact byte representation of the string in question.
Hope this helps.
bye. Andreas.
_______________________________________________
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.