NSFilePresenter

Trait NSFilePresenter 

Source
pub unsafe trait NSFilePresenter: NSObjectProtocol {
Show 22 methods // Provided methods fn presentedItemURL(&self) -> Option<Retained<NSURL>> where Self: Sized + Message { ... } fn presentedItemOperationQueue(&self) -> Retained<NSOperationQueue> where Self: Sized + Message { ... } fn primaryPresentedItemURL(&self) -> Option<Retained<NSURL>> where Self: Sized + Message { ... } unsafe fn relinquishPresentedItemToReader( &self, reader: &DynBlock<dyn Fn(*mut DynBlock<dyn Fn()>)>, ) where Self: Sized + Message { ... } unsafe fn relinquishPresentedItemToWriter( &self, writer: &DynBlock<dyn Fn(*mut DynBlock<dyn Fn()>)>, ) where Self: Sized + Message { ... } unsafe fn savePresentedItemChangesWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, ) where Self: Sized + Message { ... } unsafe fn accommodatePresentedItemDeletionWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, ) where Self: Sized + Message { ... } unsafe fn accommodatePresentedItemEvictionWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, ) where Self: Sized + Message { ... } fn presentedItemDidMoveToURL(&self, new_url: &NSURL) where Self: Sized + Message { ... } fn presentedItemDidChange(&self) where Self: Sized + Message { ... } fn presentedItemDidChangeUbiquityAttributes( &self, attributes: &NSSet<NSURLResourceKey>, ) where Self: Sized + Message { ... } fn observedPresentedItemUbiquityAttributes( &self, ) -> Retained<NSSet<NSURLResourceKey>> where Self: Sized + Message { ... } fn presentedItemDidGainVersion(&self, version: &NSFileVersion) where Self: Sized + Message { ... } fn presentedItemDidLoseVersion(&self, version: &NSFileVersion) where Self: Sized + Message { ... } fn presentedItemDidResolveConflictVersion(&self, version: &NSFileVersion) where Self: Sized + Message { ... } unsafe fn accommodatePresentedSubitemDeletionAtURL_completionHandler( &self, url: &NSURL, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, ) where Self: Sized + Message { ... } fn presentedSubitemDidAppearAtURL(&self, url: &NSURL) where Self: Sized + Message { ... } fn presentedSubitemAtURL_didMoveToURL( &self, old_url: &NSURL, new_url: &NSURL, ) where Self: Sized + Message { ... } fn presentedSubitemDidChangeAtURL(&self, url: &NSURL) where Self: Sized + Message { ... } fn presentedSubitemAtURL_didGainVersion( &self, url: &NSURL, version: &NSFileVersion, ) where Self: Sized + Message { ... } fn presentedSubitemAtURL_didLoseVersion( &self, url: &NSURL, version: &NSFileVersion, ) where Self: Sized + Message { ... } fn presentedSubitemAtURL_didResolveConflictVersion( &self, url: &NSURL, version: &NSFileVersion, ) where Self: Sized + Message { ... }
}
Available on crate feature NSFilePresenter only.
Expand description

Provided Methods§

Source

fn presentedItemURL(&self) -> Option<Retained<NSURL>>
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn presentedItemOperationQueue(&self) -> Retained<NSOperationQueue>
where Self: Sized + Message,

Available on crate feature NSOperation only.
Source

fn primaryPresentedItemURL(&self) -> Option<Retained<NSURL>>
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

unsafe fn relinquishPresentedItemToReader( &self, reader: &DynBlock<dyn Fn(*mut DynBlock<dyn Fn()>)>, )
where Self: Sized + Message,

Available on crate feature block2 only.
§Safety

reader block must be sendable.

Source

unsafe fn relinquishPresentedItemToWriter( &self, writer: &DynBlock<dyn Fn(*mut DynBlock<dyn Fn()>)>, )
where Self: Sized + Message,

Available on crate feature block2 only.
§Safety

writer block must be sendable.

Source

unsafe fn savePresentedItemChangesWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, )
where Self: Sized + Message,

Available on crate features NSError and block2 only.
§Safety

completion_handler block must be sendable.

Source

unsafe fn accommodatePresentedItemDeletionWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, )
where Self: Sized + Message,

Available on crate features NSError and block2 only.
§Safety

completion_handler block must be sendable.

Source

unsafe fn accommodatePresentedItemEvictionWithCompletionHandler( &self, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, )
where Self: Sized + Message,

Available on crate features NSError and block2 only.
§Safety

completion_handler block must be sendable.

Source

fn presentedItemDidMoveToURL(&self, new_url: &NSURL)
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn presentedItemDidChange(&self)
where Self: Sized + Message,

Source

fn presentedItemDidChangeUbiquityAttributes( &self, attributes: &NSSet<NSURLResourceKey>, )
where Self: Sized + Message,

Available on crate features NSSet and NSString and NSURL only.
Source

fn observedPresentedItemUbiquityAttributes( &self, ) -> Retained<NSSet<NSURLResourceKey>>
where Self: Sized + Message,

Available on crate features NSSet and NSString and NSURL only.
Source

fn presentedItemDidGainVersion(&self, version: &NSFileVersion)
where Self: Sized + Message,

Available on crate feature NSFileVersion only.
Source

fn presentedItemDidLoseVersion(&self, version: &NSFileVersion)
where Self: Sized + Message,

Available on crate feature NSFileVersion only.
Source

fn presentedItemDidResolveConflictVersion(&self, version: &NSFileVersion)
where Self: Sized + Message,

Available on crate feature NSFileVersion only.
Source

unsafe fn accommodatePresentedSubitemDeletionAtURL_completionHandler( &self, url: &NSURL, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, )
where Self: Sized + Message,

Available on crate features NSError and NSURL and block2 only.
§Safety

completion_handler block must be sendable.

Source

fn presentedSubitemDidAppearAtURL(&self, url: &NSURL)
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn presentedSubitemAtURL_didMoveToURL(&self, old_url: &NSURL, new_url: &NSURL)
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn presentedSubitemDidChangeAtURL(&self, url: &NSURL)
where Self: Sized + Message,

Available on crate feature NSURL only.
Source

fn presentedSubitemAtURL_didGainVersion( &self, url: &NSURL, version: &NSFileVersion, )
where Self: Sized + Message,

Available on crate features NSFileVersion and NSURL only.
Source

fn presentedSubitemAtURL_didLoseVersion( &self, url: &NSURL, version: &NSFileVersion, )
where Self: Sized + Message,

Available on crate features NSFileVersion and NSURL only.
Source

fn presentedSubitemAtURL_didResolveConflictVersion( &self, url: &NSURL, version: &NSFileVersion, )
where Self: Sized + Message,

Available on crate features NSFileVersion and NSURL only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSFilePresenter

Source§

const NAME: &'static str = "NSFilePresenter"

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 NSFilePresenter

Implementations on Foreign Types§

Source§

impl<T> NSFilePresenter for ProtocolObject<T>
where T: ?Sized + NSFilePresenter,

Implementors§