-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objective-c categories aren't included in inheritance traits and impl blocks #1779
Comments
Adding support for categories (even if ugly or with manual steps in the Builder configuration) would be much appreciated. For instance, |
I misinterpreted the purpose of this bug, and now realize that categories are supported: you have to allowlist |
Objective-c categories are a way of extending a given objective-c class. It almost feels like categories are used to organize various sections of their codebase. As a result, there are a lot of categories in the apple frameworks.
In #1750 I added better inheritance support for the binding generation but didn't add the impl blocks for the traits generated from the Objective-c categories.
It's unclear to me how to best implement this because a given class has no reference to the classes it implements. The only reference to the classes are from the categories to the classes they extend.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
impl Foo_BarCategory for Bar {}
is missing and should be something like the following:The text was updated successfully, but these errors were encountered: