ronaldoussoren / pyobjc

The Python <-> Objective-C Bridge with bindings for macOS frameworks
https://pyobjc.readthedocs.io
563 stars 47 forks source link

Merge metadata registrations #606

Open ronaldoussoren opened 6 months ago

ronaldoussoren commented 6 months ago

For the support code for NS_UNAVAILABLE it would be nice to automatically merge metadata registrations for exactly the same classname/selectorname tuples.

Also allow setting "suggestion" to None to clear the suggestion field of the method signature (which would allow both setting and clearing that field when merging is implemented). One thing to investigate before implementing this: this might still be problematic when this is used to mark an "unavailable" selector as available in a subclass when that selector has non-trivial metadata in the parent class (such as completionhandler arguments).