Re: [Pyobjc-dev] Bridging NSMutableString, a compromise
Brought to you by:
ronaldoussoren
From: David E. <epp...@ic...> - 2003-02-07 15:42:06
|
On 2/7/03 11:14 AM +0100 Just van Rossum <ju...@le...> wrote: > We end up with a situation that's very similar to what we have now: > NSStrings always get converted to Python strings (but a subclass), eg. > isinstacne(NSString.stringWithString_("ladieda"), unicode) will be true. > Yet if you need NSStringMethods you would do > > s = NSString.stringWithString_("ladieda") > s.nsstring.someNSStringMethod() If you're going to go that far, why not define your unicode subclass in such a way that s.someNSStringMethod() works? -- David Eppstein UC Irvine Dept. of Information & Computer Science epp...@ic... http://www.ics.uci.edu/~eppstein/ |