NSSharingServicePickerToolbarItemDelegate

Trait NSSharingServicePickerToolbarItemDelegate 

Source
pub unsafe trait NSSharingServicePickerToolbarItemDelegate: NSSharingServicePickerDelegate + MainThreadOnly {
    // Provided method
    fn itemsForSharingServicePickerToolbarItem(
        &self,
        picker_toolbar_item: &NSSharingServicePickerToolbarItem,
    ) -> Retained<NSArray>
       where Self: Sized + Message { ... }
}
Available on crate features NSSharingService and NSSharingServicePickerToolbarItem only.
Expand description

Provided Methods§

Source

fn itemsForSharingServicePickerToolbarItem( &self, picker_toolbar_item: &NSSharingServicePickerToolbarItem, ) -> Retained<NSArray>
where Self: Sized + Message,

Available on crate feature NSToolbarItem only.

Return the items that represent the objects to be shared. They must conform to the <NSPasteboardWriting

protocol or be an NSItemProvider. (e.g. NSString, NSImage, NSURL, etc.).

Trait Implementations§

Source§

impl ProtocolType for dyn NSSharingServicePickerToolbarItemDelegate

Source§

const NAME: &'static str = "NSSharingServicePickerToolbarItemDelegate"

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 NSSharingServicePickerToolbarItemDelegate

Implementations on Foreign Types§

Source§

impl<T> NSSharingServicePickerToolbarItemDelegate for ProtocolObject<T>

Implementors§