qdot / systray-rs

Allows rust applications to show a platform specific system tray icon and menu.
BSD 3-Clause "New" or "Revised" License
170 stars 66 forks source link

MacOS Build Error #21

Closed zaaack closed 7 years ago

zaaack commented 7 years ago
$ cargo build --lib
   Compiling systray v0.2.0 (file:///Users/z/Projects/Rust/systray-rs)
error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> src/lib.rs:66:37
   |
66 |           match api::api::Window::new(event_tx) {
   |                                       ^^^^^^^^ expected 0 parameters
   | 
  ::: src/api/cocoa/mod.rs
   |
8  | /     pub fn new() -> Result<Window, SystrayError> {
9  | |         Err(SystrayError::NotImplementedError)
10 | |     }
   | |_____- defined here

error: no method named `add_menu_entry` found for type `api::api::Window` in the current scope
  --> src/lib.rs:80:37
   |
80 |         if let Err(e) = self.window.add_menu_entry(idx, item_name) {
   |                                     ^^^^^^^^^^^^^^

error: no method named `add_menu_separator` found for type `api::api::Window` in the current scope
  --> src/lib.rs:90:37
   |
90 |         if let Err(e) = self.window.add_menu_separator(idx) {
   |                                     ^^^^^^^^^^^^^^^^^^

error: no method named `set_icon_from_file` found for type `api::api::Window` in the current scope
  --> src/lib.rs:98:21
   |
98 |         self.window.set_icon_from_file(file)
   |                     ^^^^^^^^^^^^^^^^^^

error: no method named `set_icon_from_resource` found for type `api::api::Window` in the current scope
   --> src/lib.rs:102:21
    |
102 |         self.window.set_icon_from_resource(resource)
    |                     ^^^^^^^^^^^^^^^^^^^^^^

error: no method named `shutdown` found for type `api::api::Window` in the current scope
   --> src/lib.rs:106:21
    |
106 |         self.window.shutdown()
    |                     ^^^^^^^^

error: aborting due to 6 previous errors

error: Could not compile `systray`.

To learn more, run the command again with --verbose.
VOID404 commented 7 years ago

Why is this closed? Did you managed to get it to work? I have same problem, so I'd love to hear how.

qdot commented 7 years ago

No, it's that our mac core isn't even done in the first place. :) See #4.