WebOpenPanelResultListener Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in OS X v10.2 with Safari 1.0 and later.
Available in OS X v10.2.7 and later.
Companion guide
Declared in
WebUIDelegate.h

Overview

WebView user interface delegates that implement the webView:runOpenPanelForFileButtonWithResultListener: method use the methods defined in this protocol to communicate with the listener object. The methods allow the delegate to send a cancel message, or set the selected file name.

Tasks

Setting a File Name

Cancelling a File Open Operation

Instance Methods

cancel

Invoked when a file open operation was cancelled.

- (void)cancel
Availability
  • Available in OS X v10.2 with Safari 1.0 and later.
  • Available in OS X v10.2.7 and later.
Declared In
WebUIDelegate.h

chooseFilename:

Displays a file open panel and returns the selected filename.

- (void)chooseFilename:(NSString *)fileName
Parameters
fileName

The selected file name.

Availability
  • Available in OS X v10.2 with Safari 1.0 and later.
  • Available in OS X v10.2.7 and later.
Declared In
WebUIDelegate.h

chooseFilenames:

Displays a file open panel and returns the multiple selected filenames.

- (void)chooseFilenames:(NSArray *)fileNames
Parameters
fileNames

An array of selected file names.

Availability
  • Available in OS X v10.6 and later.
Declared In
WebUIDelegate.h