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 instead of objc #241

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Use objc2 instead of objc #241

wants to merge 12 commits into from

Commits on Sep 5, 2023

  1. Fix UB in a few return arguments

    - argument.rs: These previously returned the owned types, which would cause a double-release
    - library.rs: These returned `&*mut NSArray` instead of `&NSArray`
    - device.rs: `retain` returns a pointer to the object, not `void`/`()`
    madsmtm committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    6ae2361 View commit details
    Browse the repository at this point in the history
  2. Use objc2

    - Implement Encode and RefEncode for most types
    madsmtm committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    f5d709e View commit details
    Browse the repository at this point in the history
  3. Use common types from objc2::foundation

    NSUInteger is now usize, so a bunch of `as u64` casts were removed
    madsmtm committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    5ab94d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    456eff6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bfe8061 View commit details
    Browse the repository at this point in the history
  6. Update objc2 to v0.4.1

    madsmtm committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    e958dcc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d3791b4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e427fc1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b7319e6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2e95531 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ae0bd16 View commit details
    Browse the repository at this point in the history
  12. Fix repr of MTLLibraryType

    madsmtm committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    cc9c0b6 View commit details
    Browse the repository at this point in the history