Trait objc2_app_kit::NSOpenSavePanelDelegate

source ·
pub unsafe trait NSOpenSavePanelDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn panel_shouldEnableURL(
        &self,
        sender: &AnyObject,
        url: &NSURL
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn panel_validateURL_error(
        &self,
        sender: &AnyObject,
        url: &NSURL
    ) -> Result<(), Id<NSError>>
       where Self: Sized + Message { ... }
    unsafe fn panel_didChangeToDirectoryURL(
        &self,
        sender: &AnyObject,
        url: Option<&NSURL>
    )
       where Self: Sized + Message { ... }
    unsafe fn panel_userEnteredFilename_confirmed(
        &self,
        sender: &AnyObject,
        filename: &NSString,
        ok_flag: bool
    ) -> Option<Id<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn panel_willExpand(&self, sender: &AnyObject, expanding: bool)
       where Self: Sized + Message { ... }
    unsafe fn panelSelectionDidChange(&self, sender: Option<&AnyObject>)
       where Self: Sized + Message { ... }
}
Available on crate feature NSSavePanel only.

Provided Methods§

source

unsafe fn panel_shouldEnableURL(&self, sender: &AnyObject, url: &NSURL) -> bool
where Self: Sized + Message,

source

unsafe fn panel_validateURL_error( &self, sender: &AnyObject, url: &NSURL ) -> Result<(), Id<NSError>>
where Self: Sized + Message,

source

unsafe fn panel_didChangeToDirectoryURL( &self, sender: &AnyObject, url: Option<&NSURL> )
where Self: Sized + Message,

source

unsafe fn panel_userEnteredFilename_confirmed( &self, sender: &AnyObject, filename: &NSString, ok_flag: bool ) -> Option<Id<NSString>>
where Self: Sized + Message,

source

unsafe fn panel_willExpand(&self, sender: &AnyObject, expanding: bool)
where Self: Sized + Message,

source

unsafe fn panelSelectionDidChange(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSOpenSavePanelDelegate

source§

const NAME: &'static str = "NSOpenSavePanelDelegate"

The name of the Objective-C protocol that this type represents.
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 NSOpenSavePanelDelegate

Implementations on Foreign Types§

source§

impl<T> NSOpenSavePanelDelegate for ProtocolObject<T>

Implementors§

source§

impl NSOpenSavePanelDelegate for NSPathCell

Available on crate features NSActionCell and NSCell and NSPathCell only.