Skip to main content

NSPasteboardItemDataProvider

Trait NSPasteboardItemDataProvider 

Source
pub unsafe trait NSPasteboardItemDataProvider: NSObjectProtocol {
    // Provided methods
    fn pasteboard_item_provideDataForType(
        &self,
        pasteboard: Option<&NSPasteboard>,
        item: &NSPasteboardItem,
        type: &NSPasteboardType,
    )
       where Self: Sized + Message { ... }
    fn pasteboardFinishedWithDataProvider(&self, pasteboard: &NSPasteboard)
       where Self: Sized + Message { ... }
}
Available on crate feature NSPasteboardItem only.
Expand description

Provided Methods§

Source

fn pasteboard_item_provideDataForType( &self, pasteboard: Option<&NSPasteboard>, item: &NSPasteboardItem, type: &NSPasteboardType, )
where Self: Sized + Message,

Available on crate feature NSPasteboard only.
Source

fn pasteboardFinishedWithDataProvider(&self, pasteboard: &NSPasteboard)
where Self: Sized + Message,

Available on crate feature NSPasteboard only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSPasteboardItemDataProvider

Source§

impl ProtocolType for dyn NSPasteboardItemDataProvider

Source§

const NAME: &'static str = "NSPasteboardItemDataProvider"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSPasteboardItemDataProvider for ProtocolObject<T>

Implementors§