Skip to content
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

Fix protocol names #508

Merged
merged 3 commits into from
Sep 11, 2023
Merged

Fix protocol names #508

merged 3 commits into from
Sep 11, 2023

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Sep 10, 2023

Fix protocol names of renamed protocols NSObjectProtocol, NSAccessibilityElementProtocol, NSTextAttachmentCellProtocol and NSFileProviderItemProtocol.

This also fixes the issue with declaring conformance to the NSObjectProtocol in declare_class!, so that's really nice!

@madsmtm madsmtm added bug Something isn't working A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates A-framework Affects the framework crates and the translator for them labels Sep 10, 2023
@madsmtm madsmtm force-pushed the fix-nsobjectprotocol branch 5 times, most recently from 57d7c75 to 664e0a0 Compare September 10, 2023 23:51
It is more like an odd edge-case that `NSObject` implements `ProtocolType` and can be used as `ProtocolObject<NSObject>`, users should instead use `NSObjectProtocol` which works like any other protocol.
@madsmtm madsmtm merged commit 9fa77b3 into master Sep 11, 2023
19 checks passed
@madsmtm madsmtm deleted the fix-nsobjectprotocol branch September 11, 2023 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant