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.

Ronald
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to