pub unsafe trait NSToolbarItemValidation: NSObjectProtocol + MainThreadOnly {
// Provided method
fn validateToolbarItem(&self, item: &NSToolbarItem) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
NSToolbarItem only.Expand description
Provided Methods§
Sourcefn validateToolbarItem(&self, item: &NSToolbarItem) -> bool
fn validateToolbarItem(&self, item: &NSToolbarItem) -> bool
NSToolbarItemValidation extends the standard validation idea by introducing this new method which is sent to validators for each visible standard NSToolbarItem with a valid target/action pair.
Note: This message is sent from NSToolbarItem’s validate method, however validate will not send this message for items that have custom views.
Trait Implementations§
Source§impl ProtocolType for dyn NSToolbarItemValidation
impl ProtocolType for dyn NSToolbarItemValidation
impl<T> ImplementedBy<T> for dyn NSToolbarItemValidation
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".