Trait NSToolbarItemValidation

Source
pub unsafe trait NSToolbarItemValidation: NSObjectProtocol + MainThreadOnly {
    // Provided method
    unsafe fn validateToolbarItem(&self, item: &NSToolbarItem) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSToolbarItem only.
Expand description

Provided Methods§

Source

unsafe fn validateToolbarItem(&self, item: &NSToolbarItem) -> bool
where Self: Sized + Message,

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

Source§

const NAME: &'static str = "NSToolbarItemValidation"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSToolbarItemValidation

Implementations on Foreign Types§

Source§

impl<T> NSToolbarItemValidation for ProtocolObject<T>

Implementors§