diff --git a/appkit/src/lib.rs b/appkit/src/lib.rs index d6f35b4..bb88de8 100644 --- a/appkit/src/lib.rs +++ b/appkit/src/lib.rs @@ -49,7 +49,7 @@ pub mod prelude { pub use crate::menu::{Menu, MenuItem}; pub use crate::notifications::{Notification, NotificationCenter, NotificationAuthOption}; - pub use crate::toolbar::{ToolbarDelegate}; + pub use crate::toolbar::{Toolbar, ToolbarController}; pub use crate::networking::URLRequest; diff --git a/appkit/src/pasteboard/pasteboard.rs b/appkit/src/pasteboard/pasteboard.rs index 7e5f315..0ae054b 100644 --- a/appkit/src/pasteboard/pasteboard.rs +++ b/appkit/src/pasteboard/pasteboard.rs @@ -12,7 +12,7 @@ use objc_id::Id; use url::Url; use crate::error::AppKitError; -use crate::pasteboard::types::{PasteboardName, PasteboardType}; +use crate::pasteboard::types::{PasteboardName}; use crate::utils::str_from; /// Represents an `NSPasteboard`, enabling you to handle copy/paste/drag and drop. diff --git a/appkit/src/toolbar/item.rs b/appkit/src/toolbar/item.rs index 305f1ca..4150a80 100644 --- a/appkit/src/toolbar/item.rs +++ b/appkit/src/toolbar/item.rs @@ -14,21 +14,23 @@ use crate::button::Button; /// A wrapper for `NSWindow`. Holds (retains) pointers for the Objective-C runtime /// where our `NSWindow` and associated delegate live. -pub struct ToolbarItem<'a> { - pub identifier: &'a str, +pub struct ToolbarItem { + pub identifier: String, pub inner: Id, pub button: Option