Skip to content

Add the CoreFoundation framework#676

Merged
madsmtm merged 8 commits into
masterfrom
cf
Dec 9, 2024
Merged

Add the CoreFoundation framework#676
madsmtm merged 8 commits into
masterfrom
cf

Conversation

@madsmtm
Copy link
Copy Markdown
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 and others added 2 commits December 9, 2024 22:58
Co-authored-by: samuelsleight <samuel.sleight@gmail.com>
Co-authored-by: silvanshade <silvanshade@users.noreply.github.com>
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