[Pyobjc-dev] NSTextView weirdness
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-13 16:08:43
|
Steve Arnold and I have been tracking down a bug related to NSTextView in the current [from cvs] version of the module. It is a nasty bug that can cause crashes, etc... I updated Examples/method-weirdness.py to demonstrate the bug [basically, generalized the code such that we can trivially add new class/method tests -- I smell a unit test in here somewhere]. As it currently stands, method-weirdness.py causes the bridge to crash. If you change the #if 1 to #if 0 in the middle of execute_and_pythonify_objc_method() in objc_sumpport.m, the crash moves until later-- until the objc_object is dealloc'd. It looks like the bridge is sending -release to a class object-- NSTextView-- and this leads to the crash, but I'm not 100% certain this is the case. Hopefully, it is as it would be a bug in the AppKit that is very easy to work around (is class?: don't release!). b.bum |