[Pyobjc-dev] Subclassing.
Brought to you by:
ronaldoussoren
From: Mirko V. <mi...@ob...> - 2003-01-09 18:53:30
|
Ciao! I've implemented objc_addClass() and fixed some things but now there is no way to call an objc method from a subclass: [mirko@rey] /usr/home/mirko/src/gnustep/pyobjc> python Examples/subclassing-objective-c.py <native-selector alloc of <objective-c class Demo at 0x8105780>> -> Traceback (most recent call last): File "Examples/subclassing-objective-c.py", line 31, in ? print "->", obj.retainCount(); AttributeError: 'NoneType' object has no attribute 'retainCount' It seems that is not able to allocate a Demo object... how should I check ? Thanks. -- Ciao Mirko |