Re: [Pyobjc-dev] strings returned from ObjC are now unicode?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-02-09 11:41:35
|
On Sunday, Feb 9, 2003, at 09:23 Europe/Amsterdam, Just van Rossum wrote: > Chris Ryland wrote: > >> The latest CVS seems to return unicode strings from objc >> string-producing calls. >> >> Is that the final decision about this hotly-debated topic? Converting NSStrings to unicode was only a sidetrack of the string related discussions ;-). > > I'm not sure it's final, but is it a problem for you? NSStrings can > always contain unicode so I think it's a good signal to the user (of > PyObjC ;-) to always return unicode strings. This is partially because I was lazy and only subclassed __builtin__.unicode, but mostly because NSStrings are unicode strings. Unless returning unicode strings proves to be a real problem I'd like to keep it this way (if you want a string you can always do the conversion yourself). Ronald |