kivy / pyobjus

Access Objective-C classes from Python
https://pyobjus.readthedocs.io
MIT License
179 stars 47 forks source link

Rework `protocols` and `buildprotocols.py` tool. Now a protocol can be loaded during runtime, either in batch from a file, or individually. #105

Open misl6 opened 1 year ago

misl6 commented 1 year ago

DO NOT MERGE YET (docs and tests needed).

This PR is needed for an upcoming Kivy feature, where we need to load a .framework during runtime, on iOS. Is also useful for users who need to access a protocol that is not into the "legacy" ones, or is not available for self-discover via objc_getProtocol (https://developer.apple.com/documentation/objectivec/1418870-objc_getprotocol?language=objc)