accessoryView
The custom accessory view for the current app.
Declaration
var accessoryView: NSView? { get set }Discussion
You can customize the panel by adding a custom view. The custom object you add appears just above the OK and Cancel buttons at the bottom of the panel. The NSSavePanel object automatically resizes itself to accommodate accessoryView. 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, don’t rely on the panel to hold onto the accessory view until the next time you use it; instead, maintain your own strong reference to the view.