3 ms·
Probably the best way to go is to write native GUIs for each OS. That means win32 on Windows, Cocoa on MacOS, and X11 on Linux. win32 and X11 are just C APIs, s
by phendrenad2 5y ago
Probably the best way to go is to write native GUIs for each OS. That means win32 on Windows, Cocoa on MacOS, and X11 on Linux. win32 and X11 are just C APIs, so those are easy. On Linux you'll need a widget toolkit, such as GTK or Qt or WxWidgets (or many, many more!). MacOS is a bit more complex (the native APIs are exposed as Objective-C APIs), so you'll probably want to wrap your app in an XCode project with all of the GUI built in XCode.
- Klonoar 5y agoEh, re: macOS, I have an effort to make it possible without basically using the foundation crates: https://rymc.io/blog/2021/cacao-rs-macos-ios-rust/ https://rymc.io/blog/2021/cacao-rs-macos-ios-rust/ There’s other projects that wrap the varying frameworks so I don’t think macOS is as bad as it used to be, but I foresee it still being confusing due to missing docs on Apples side…
- nly 5y agoX11 isn't a GUI framework and is already legacy (Wayland)