Instance Property

fileURL

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

Declaration

@property(copy) NSURL *fileURL;

Return Value

The document’s location.

Discussion

The default implementation of this property returns the URL of the file that was opened. Changing the value of this property does not actually change the document’s name or location; it is only for recording the document’s location during its initial opening or saving.

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.

shouldRunSavePanelWithAccessoryView

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

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.

draft

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