Trait WebOpenPanelResultListener

Source
pub unsafe trait WebOpenPanelResultListener: NSObjectProtocol {
    // Provided methods
    unsafe fn chooseFilename(&self, file_name: Option<&NSString>)
       where Self: Sized + Message { ... }
    unsafe fn chooseFilenames(&self, file_names: Option<&NSArray>)
       where Self: Sized + Message { ... }
    unsafe fn cancel(&self)
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebUIDelegate only.
Expand description

This protocol is used to call back with the results of the file open panel requested by runOpenPanelForFileButtonWithResultListener:

See also Apple’s documentation

Provided Methods§

Source

unsafe fn chooseFilename(&self, file_name: Option<&NSString>)
where Self: Sized + Message,

👎Deprecated

Call this method to return a filename from the file open panel.

Parameter fileName: the path of the selected file

Source

unsafe fn chooseFilenames(&self, file_names: Option<&NSArray>)
where Self: Sized + Message,

👎Deprecated

Call this method to return an array of filenames from the file open panel.

Parameter fileNames: an array of paths of selected files

Source

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

👎Deprecated

Call this method to indicate that the file open panel was cancelled.

Trait Implementations§

Source§

impl ProtocolType for dyn WebOpenPanelResultListener

Source§

const NAME: &'static str = "WebOpenPanelResultListener"

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 WebOpenPanelResultListener

Implementations on Foreign Types§

Source§

impl<T> WebOpenPanelResultListener for ProtocolObject<T>

Implementors§