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§
fn readableTypesForPasteboard( pasteboard: &NSPasteboard, ) -> Retained<NSArray<NSPasteboardType>>
fn readingOptionsForType_pasteboard( type: &NSPasteboardType, pasteboard: &NSPasteboard, ) -> NSPasteboardReadingOptions
Sourceunsafe fn initWithPasteboardPropertyList_ofType(
this: Allocated<Self>,
property_list: &AnyObject,
type: &NSPasteboardType,
) -> Option<Retained<Self>>
unsafe fn initWithPasteboardPropertyList_ofType( this: Allocated<Self>, property_list: &AnyObject, type: &NSPasteboardType, ) -> Option<Retained<Self>>
§Safety
property_list
should be of the correct type.
Trait Implementations§
Source§impl ProtocolType for dyn NSPasteboardReading
impl ProtocolType for dyn NSPasteboardReading
impl<T> ImplementedBy<T> for dyn NSPasteboardReading
Implementations on Foreign Types§
impl NSPasteboardReading for NSAttributedString
Available on crate feature
NSAttributedString
only.impl NSPasteboardReading for NSString
impl NSPasteboardReading for NSURL
impl<T> NSPasteboardReading for ProtocolObject<T>where
T: ?Sized + NSPasteboardReading,
Implementors§
impl NSPasteboardReading for NSColor
Available on crate feature
NSColor
only.impl NSPasteboardReading for NSFilePromiseReceiver
Available on crate feature
NSFilePromiseReceiver
only.impl NSPasteboardReading for NSImage
Available on crate feature
NSImage
only.impl NSPasteboardReading for NSPasteboardItem
Available on crate feature
NSPasteboardItem
only.impl NSPasteboardReading for NSSound
Available on crate feature
NSSound
only.