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

Implement Encode and RefEncode for UnsafeCell and Cell #351

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Jan 15, 2023

UnsafeCell is possible since rust-lang/rust#101717, and Cell is possible since rust-lang/rust#106921.

This is actually really important, since most user-declared classes should use interior mutability (e.g. when overriding NSView or NSWindowDelegate).

@madsmtm madsmtm added enhancement New feature or request A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates labels Jan 15, 2023
@madsmtm madsmtm mentioned this pull request Jan 18, 2023
@madsmtm madsmtm changed the title Implement Encode and RefEncode for UnsafeCell Implement Encode and RefEncode for UnsafeCell and Cell Jan 27, 2023
@madsmtm madsmtm added this to the objc2 v0.3 milestone Jan 27, 2023
@madsmtm madsmtm merged commit 0365ef4 into master Mar 30, 2023
@madsmtm madsmtm deleted the encode-unsafecell branch March 30, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant