Re: [Pyobjc-dev] CurrencyConverter for XCode/IB 3.0
Brought to you by:
ronaldoussoren
|
From: Daniel C. <cas...@np...> - 2008-05-01 11:16:36
|
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() -- Daniel Casimiro <cas...@np...> |