Hi,

I’ve pushed PyObjC 3.2 to PyPI (finally…). The major new feature in this 
version is support for OSX 10.12 (Sierra) and the new APIs introduced in this 
version of OSX.

There is also a backward incompatible change: the default method signature is 
calculated differently than before. This will primarily affect code that adds 
python-only method to a class, like so:

   class MyObject (NSObject):
        def amethod(self, a, b): pass

This would work in previous versions, but no longer works because the method 
name suggests that this is a method without arguments (the translation to an 
Objective-C selector contains no colons). The workaround for this is easy 
enough: use the decorator “objc.python_method” on methods that won’t be called 
from Objective-C.

This change was necessary to make it possible to use generic decorators on 
selectors. 

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

Reply via email to