-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion error with basic usage of NSStatusBar #176
Comments
Comment by viraptor For more info, confirming on rust 1.15.1 and libs:
|
Comment by savruk This on the other hand compiles(rustc 1.17.0, cocoa = "0.8.1"): extern crate cocoa;
use cocoa::appkit::{NSStatusBar, NSApp};
use cocoa::base::nil;
fn main() {
unsafe {
let app = NSApp(); // initialising the app first does the trick for me
let _ = NSStatusBar::systemStatusBar(nil);
}
} |
Comment by frewsxcv 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. |
Compile NSValue on macOS only Because it depends on `NSSize`/`NSPoint`. This fixes the build on iOS. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/176) <!-- Reviewable:end -->
Issue by frewsxcv
Wednesday Dec 14, 2016 at 00:52 GMT
Originally opened as servo/cocoa-rs#149
https://developer.apple.com/reference/appkit/nsstatusbar/1530619-systemstatusbar?language=objc
The text was updated successfully, but these errors were encountered: