hecrj / window_clipboard

A library to obtain clipboard access from a `raw-window-handle`.
MIT License
21 stars 30 forks source link

Use `objc2` and its framework crates #27

Closed madsmtm closed 5 months ago

madsmtm commented 6 months ago

objc2 is a replacement for objc/objc_id that contains a bunch of safety improvements, including msg_send_id! which ensures that we uphold memory management rules correctly, and objc2-app-kit which is an automatically generated interface to AppKit.

Concretely, this fixes a leak in the passing of the NSArray to writeObjects.