Instance Property

accessoryView

The custom accessory view for the current application.

Declaration

@property(strong) NSView *accessoryView;

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

title

The title of the panel.

prompt

The prompt of the default button.

nameFieldLabel

The string displayed in front of the filename text field.

message

The message text displayed in the save panel.

canCreateDirectories

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

showsHiddenFiles

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

delegate

The panel’s delegate.

showsTagField

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

tagNames

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