Re: [Pyobjc-dev] CurrencyConverter for XCode/IB 3.0
Brought to you by:
ronaldoussoren
|
From: s s <li...@in...> - 2008-05-02 02:56:13
|
On May 1, 2008, at 7:13 AM, Daniel Casimiro wrote: > > On Wed, 2008-04-30 at 22:30 -0400, Steve Steiner wrote: >> TypeError: Use class methods to instantiate new Objective-C objects >> > > You cannot instantiate NSObject classes using the normal Python > convention. These are Objective C classes, so you need to do it the > Objective C way (NSObject.alloc().init()) > > Try changing lines like: > > self.converter = Converter() > > to > > self.converter = Converter.alloc().init() I knew it was something obvious I was overlooking. Got it working about 2 seconds after I got your message. Thanks for your help! S |