Skip to content

Proposal: Use objc2 and its framework crates #1239

Closed
@madsmtm

Description

@madsmtm

objc2 is the successor to objc, which includes a bunch of improvements, especially wrt. memory management. Additionally, it provides the objc2-foundation, objc2-app-kit and objc2-web-kit crates, which would be very useful for wry to decrease the amount of error-prone manual binding code. Finally, the declare_class! macro would be useful for creating wry's delegate classes.

I begun on the transition a little bit in this branch, but realized it's gonna be a lot of work, so wanted to get some feedback first (or ideally: get someone else to do the work ;) ).

We should also migrate to it in muda, tray-icon (tauri-apps/tray-icon#172), window-vibrancy, tao, tauri, tauri-runtime-wry and so on, but doing that in these crates is substantially less work (updating tao to a newer Winit should fix it automatically, and the rest are fairly small), and can be done in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions