pyobjc
pyobjc copied to clipboard
Investigate options to make python_method optional
Original report by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren).
Options:
- “python_method” when the method name doesn’t match the “selector” pattern
- Add “objc_method” and a global and/or per-class to switch the default
Goal is to make writing code more natural, currently classes contain to many python_method decorators when mixing Python and ObjC code.
I’m leaning toward option 1, although I’m slightly worried that this makes it to easy to accidentally create a python_method. Longer term it might be better to switch the default and require the use of an objc_method decorator to register objc methods.