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

Use objc2 and its framework crates #148

Merged
merged 1 commit into from
Apr 27, 2024
Merged

Commits on Apr 23, 2024

  1. Use objc2 and its framework crates

    `objc2` is a replacement for `objc`/`objc_id` that contains a bunch of safety improvements, including `msg_send_id!` which automatically upholds memory management rules (`Id::from_ptr`/`Id::from_retained_ptr` is no longer necessary).
    
    Additionally, we use the framework crates `objc2-foundation` and `objc2-app-kit`, which provide for example the `NSPasteboard` type, which has the methods that arboard needs already defined, and with the correct types, ensuring that passing e.g. `Id<NSArray>` and thus accidentally giving away ownership over the array won't happen again.
    
    These crates are automatically generated, ensuring that if you need some obscure API in the future, it's very likely to be there already.
    madsmtm committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    4766f41 View commit details
    Browse the repository at this point in the history