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§
Sourceunsafe fn chooseFilename(&self, file_name: Option<&NSString>)
👎Deprecated
unsafe fn chooseFilename(&self, file_name: Option<&NSString>)
Call this method to return a filename from the file open panel.
Parameter fileName: the path of the selected file
§Safety
file_name might not allow None.
Sourceunsafe fn chooseFilenames(&self, file_names: Option<&NSArray>)
👎Deprecated
unsafe fn chooseFilenames(&self, file_names: Option<&NSArray>)
Call this method to return an array of filenames from the file open panel.
Parameter fileNames: an array of paths of selected files
§Safety
file_namesgeneric should be of the correct type.file_namesmight not allowNone.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn WebOpenPanelResultListener
Source§impl ProtocolType for dyn WebOpenPanelResultListener
impl ProtocolType for dyn WebOpenPanelResultListener
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".