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

Add the CoreFoundation framework #676

Merged
merged 8 commits into from
Dec 9, 2024
Merged

Add the CoreFoundation framework #676

merged 8 commits into from
Dec 9, 2024

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Dec 9, 2024

Part of #556.

This was... Actually a lot easier than I thought it would be, at least nowadays - though part of that is that we're very much skimping on actually generating useful definitions, i.e. CF*Refs are currently just typedefs to *mut c_void, but that can be improved later.

Huge thanks to @silvanshade and @samuelsleight, I've taken a bunch of commits from #400 and #471.

NOTE: This does have the disadvantage that using types like CGPoint now requires CoreFoundation, but there isn't much we can do about it, as the correct place for these types to live really is CoreFoundation. (I guess we could add extra type-aliases for CGFloat, but I really wanted to land this PR, so I didn't want to block on a future improvement like that).

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels Dec 9, 2024
@madsmtm madsmtm added this to the objc2 v0.6 / frameworks v0.3 milestone Dec 9, 2024
@madsmtm madsmtm force-pushed the cf branch 4 times, most recently from 515acb0 to acd2783 Compare December 9, 2024 21:58
@madsmtm madsmtm merged commit 00d6ecf into master Dec 9, 2024
20 checks passed
@madsmtm madsmtm deleted the cf branch December 9, 2024 22:05
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 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants