[Pythonmac-SIG] PyObjC: debugging error-less crashes?

Ronald Oussoren ronaldoussoren at mac.com
Thu Jul 24 14:12:55 CEST 2008

On 24 Jul, 2008, at 14:07, Daniel Ashbrook wrote:

> Ronald Oussoren wrote:
>> Decorators like endSheetMethod aren't needed for most other methods  
>> because either the method signature is simple (all arguments are  
>> objects, as is the return value), or PyObjC can deduct the correct  
>> method signature from the super class or protocol definitions.
> There was a case where I had to decorate a couple of functions with  
> @objc.accessor or I got the same kind of no-error crash. Is it the  
> same cause? Is there a way to know when I need to use that vs not?
That depends on the method names you're using. "Regular" accessors  
("setFoo_" and "foo") should work without an objc.accessor decorator.


More information about the Pythonmac-SIG mailing list