-
Notifications
You must be signed in to change notification settings - Fork 70
Register new proto in runtime #820
Copy link
Copy link
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themA-objc2Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesAffects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesbugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themA-objc2Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesAffects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesbugSomething isn't workingSomething isn't working
Hi,
Trying to register my own protocol for use with
NSXPCInterface. For some reason, the protocol is never registered and<dyn NSConnectionInterface>::protocol()returnsNone.Trying to register protocol manually but I arrive at objc exception:
Some good reads too: https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinterface.html
Besides xpc shenanigans which I don't think we can workaround without using objc. My first question is, how do we ensure that protocols defined in Rust are registered with runtime? This seems to automatic in objc right?
Example