Instance Property

accessoryView

The custom accessory view for the current application.

Declaration

var accessoryView: NSView? { get set }

Discussion

You can customize the panel by adding a custom view. The custom object that is added appears just above the OK and Cancel buttons at the bottom of the panel. The NSSavePanel object automatically resizes itself to accommodate accessoryView. You can use this property to change the accessory view as needed. If accessoryView is nil, the Save panel removes the current accessory view.

The panel relinquishes ownership of the accessory view after the panel is closed. If you want to reuse the accessory view, you should not rely on the panel to hold onto the accessory view until the next time you use it; instead, you should maintain your own strong reference to the view.

See Also

Configuring Panels

var title: String!

The title of the panel.

var prompt: String!

The prompt of the default button.

var nameFieldLabel: String!

The string displayed in front of the filename text field.

var message: String!

The message text displayed in the save panel.

var canCreateDirectories: Bool

A Boolean value that indicates whether the panel allows the user to create directories.

var showsHiddenFiles: Bool

A Boolean value that indicates whether the panel displays files that are normally hidden from the user.

var showsTagField: Bool

A Boolean value that indicates whether the panel displays the Tags field.

var tagNames: [String]?

The tag names to set on the file the user has saved.