Instance Property

shouldRunSavePanelWithAccessoryView

A Boolean value indicating whether the document’s Save panel displays a list of supported writable document types.

Declaration

@property(readonly) BOOL shouldRunSavePanelWithAccessoryView;

Discussion

When the value of this property is YES, the document includes a pop-up menu of supported writable document types when it displays the Save panel. The default value of this property is YES. Subclasses can override this property to provide a different value. For example, you might provide the following implementation:

- (BOOL)shouldRunSavePanelWithAccessoryView {
    return [self fileURL] == nil;
}

See Also

Reading From and Writing to Files

- readFromFileWrapper:ofType:error:

Sets the contents of this document by reading from a file wrapper of a specified type.

fileModificationDate

The last known modification date of the document’s on-disk representation.

- runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:

Presents a modal Save panel to the user, then tries to save the document if the user approves the panel.

keepBackupFile

A Boolean value indicating whether the document keeps the backup files created before the document data is written to a file.

backupFileURL

The URL for the document’s backup file that was created during an autosave operation.

fileURL

The location of the document’s on-disk representation.

draft

A Boolean value indicating whether the document is a draft that the user has not expressed an interest in keeping around.