ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.85k stars 69 forks source link

Menubar support #71

Open rawnly opened 1 year ago

rawnly commented 1 year ago

Hi, is it possible to create a menubar app via cacao? if so, is it documented?

ryanmcgrath commented 1 year ago

Possible? Yes. As easy as it should be? No. Documented? Ish.

What I mean is this: you can absolutely use cacao to set up the application delegate cycle and write objc calls directly (or wrap your own pieces) to do the menu bar stuff. If the menu bar stuff feels good and you want to PR it, it'd absolutely be looked at for merging since it's a common enough need.

rawnly commented 1 year ago

If the menu bar stuff feels good and you want to PR it, it'd absolutely be looked at for merging since it's a common enough need.

Unfortunately, I have only some experience with swift directly, I've never written a line of objc 🙃... but I'll try anyway to implement it, is a nice weekend project :)