Instance Property

isEntireFileLoaded

A Boolean value indicating whether the document’s file is completely loaded into memory.

Declaration

var isEntireFileLoaded: Bool { get }

Return Value

true if the document’s entire file is loaded into memory; otherwise false.

Discussion

The default value of this property is true, which signifies that the entire file is loaded into memory. You can override this property to return false if additional data needs to be read from the file. NSDocument may use this value to do things like prevent volume ejection or warn the user when a partially loaded file disappears from the file system.

See Also

Loading Document Data

func data(ofType: String) -> Data

Creates and returns a data object that contains the contents of the document, formatted to a specified type.

func fileWrapper(ofType: String) -> FileWrapper

Creates and returns a file wrapper that contains the contents of the document, formatted to the specified type.

func read(from: Data, ofType: String)

Sets the contents of this document by reading from data of a specified type and returns true if successful.