NSPasteboardReading

Trait NSPasteboardReading 

Source
pub unsafe trait NSPasteboardReading: NSObjectProtocol {
    // Provided methods
    fn readableTypesForPasteboard(
        pasteboard: &NSPasteboard,
    ) -> Retained<NSArray<NSPasteboardType>>
       where Self: Sized + ClassType { ... }
    fn readingOptionsForType_pasteboard(
        type: &NSPasteboardType,
        pasteboard: &NSPasteboard,
    ) -> NSPasteboardReadingOptions
       where Self: Sized + ClassType { ... }
    unsafe fn initWithPasteboardPropertyList_ofType(
        this: Allocated<Self>,
        property_list: &AnyObject,
        type: &NSPasteboardType,
    ) -> Option<Retained<Self>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSPasteboard only.
Expand description

Provided Methods§

Source

fn readableTypesForPasteboard( pasteboard: &NSPasteboard, ) -> Retained<NSArray<NSPasteboardType>>
where Self: Sized + ClassType,

Source

fn readingOptionsForType_pasteboard( type: &NSPasteboardType, pasteboard: &NSPasteboard, ) -> NSPasteboardReadingOptions
where Self: Sized + ClassType,

Source

unsafe fn initWithPasteboardPropertyList_ofType( this: Allocated<Self>, property_list: &AnyObject, type: &NSPasteboardType, ) -> Option<Retained<Self>>
where Self: Sized + Message,

§Safety

property_list should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn NSPasteboardReading

Source§

const NAME: &'static str = "NSPasteboardReading"

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 NSPasteboardReading

Implementations on Foreign Types§

Source§

impl NSPasteboardReading for NSAttributedString

Available on crate feature NSAttributedString only.
Source§

impl NSPasteboardReading for NSString

Source§

impl NSPasteboardReading for NSURL

Source§

impl<T> NSPasteboardReading for ProtocolObject<T>

Implementors§

Source§

impl NSPasteboardReading for NSColor

Available on crate feature NSColor only.
Source§

impl NSPasteboardReading for NSFilePromiseReceiver

Available on crate feature NSFilePromiseReceiver only.
Source§

impl NSPasteboardReading for NSImage

Available on crate feature NSImage only.
Source§

impl NSPasteboardReading for NSPasteboardItem

Available on crate feature NSPasteboardItem only.
Source§

impl NSPasteboardReading for NSSound

Available on crate feature NSSound only.