-
Notifications
You must be signed in to change notification settings - Fork 54
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
Update objc2
to v0.6
, and use new objc2-core-graphics
crate
#254
Conversation
5e2d34a
to
497ecb9
Compare
Looks like the released
I think there's a word or two missing in this sentence after "doesn't have"? |
497ecb9
to
ed4b4c1
Compare
Added "the (I'd have linked to the helper, but it's marked |
1a6bd86
to
e56fc54
Compare
e56fc54
to
2090136
Compare
It was a while ago, but I was wondering if we could do something custom with the Testing on an M1 Mac Mini, I see an |
I can't claim expertise with the CoreGraphics APIs, but most of this seems like a straightforward change from the old API, and the |
Thanks for the reviews!
I think that has been fixed with newer Winit, try |
Ah right. Forgot to try that, and of course I have an old |
objc2
now provides an interface to CoreGraphics, which has automatic memory management, and interfaces better with the otherobjc2-*
crates. Note that this doesn't have theCGDataProvider
helper we were using before, but I'd argue that's actually a benefit, since it forces us to implement the data provider ourselves (and makes it very visible that that's a place where there's room for improvement).Another notable change is the introduction of
Retained::downcast
, which we use to ensure that our types are correct in the key-value observer (instead of blindly casting, and hoping that they are).This requires an MSRV bump to Rust 1.71 to get access to
extern "C-unwind"
functions.