Re: [Pyobjc-dev] Auto bridging instances by conversion
Brought to you by:
ronaldoussoren
From: David E. <epp...@ic...> - 2003-02-03 19:15:09
|
Shouldn't the following work? I get an exception, str has no setString_ method... I was hoping to use NSMutableString for my testing of int undo handling, since it is simpler to set up than the NSTableView method where I ran across the int issue, but I guess I'll have to look for something else... # test ability to use NSMutableString from Foundation import NSObject, NSMutableString class TestUndoInt (NSObject): def init(self): self.string = NSMutableString.stringWithCapacity_(20) self.string.setString_("initial") x = TestUndoInt.alloc().init() assert(str(x.string) == 'initial') -- David Eppstein UC Irvine Dept. of Information & Computer Science epp...@ic... http://www.ics.uci.edu/~eppstein/ |