Mac OS X Reference Library Apple Developer Connection spyglass button

WebOpenPanelResultListener Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in Mac OS X v10.2 with Safari 1.0 and later.
Available in Mac 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. (required)

- (void)cancel

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

chooseFilename:

Displays a file open panel and returns the selected filename. (required)

- (void)chooseFilename:(NSString *)fileName

Parameters
fileName

The selected file name.

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

chooseFilenames:

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

- (void)chooseFilenames:(NSArray *)fileNames

Parameters
fileNames

An array of selected file names.

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


Last updated: 2009-04-01

Did this document help you? Yes It's good, but... Not helpful...