Re: [Pyobjc-dev] Strings: Python -> ObjC
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-02-07 16:02:08
|
bb...@ma... wrote: > I have an OC_PythonString implementation [that needs some adjustment > in light of Ronald's recent improvements] that does not convert the > Python string and maintains the reference to the string. "the string" meaning the NSString, right? > It works > as you describe for both unicode and python strings, How does it work with unicode strings? I think we can't get decent transparency without subclassing unicode (and I agree with David Eppstein that it's best to just go for unicode all the way). > naively assuming > that python strings can be represented within an NSString without > problem [so far so good]. I'm not following you. This is a wrapper so NSStrings can be used in Python as _if_ they are Python strings, where does representing a _Python_ string with an NSString come into the picture? just |