Re: [Pyobjc-dev] Some PyObC tweaks for using EOF and custom frameworks
Brought to you by:
ronaldoussoren
From: Pierce T. W. I. <pi...@ma...> - 2003-08-10 15:26:50
|
>> >> That probably doesn't help with objects that get invalidated. PyObjC >> doesn't deal gracefully with objects that change their class. > > Yeah, it comes back as a "NoneType" object. after invalidation and > throws an error. > probably fixable with another [obj self] call before any method > dispatching if I can find the place to do it. I found one spot: Changing #define PyObjCObject_GetObject(object) (((PyObjCObject*)(object))->objc_object) to #define PyObjCObject_GetObject(object) ([((PyObjCObject*)(object))->objc_object self]) in pyobjc.h seems to do it. There are probably better locations though. Pierce |