You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
This on the other hand compiles(rustc 1.17.0, cocoa = "0.8.1"):
externcrate cocoa;use cocoa::appkit::{NSStatusBar,NSApp};use cocoa::base::nil;fnmain(){unsafe{let app = NSApp();// initialising the app first does the trick for melet _ = NSStatusBar::systemStatusBar(nil);}}
Yep, initializing the app first seems to be required. Ideally, there'd be a better error for this scenario, but I'm not sure there's much we can do. If there's not much we can do here, this issue can be closed I suppose.
https://developer.apple.com/reference/appkit/nsstatusbar/1530619-systemstatusbar?language=objc
The text was updated successfully, but these errors were encountered: