Instance Property

entireFileLoaded

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

Declaration

@property(getter=isEntireFileLoaded, readonly) BOOL entireFileLoaded;

Return Value

YES if the document’s entire file is loaded into memory; otherwise NO.

Discussion

The default value of this property is YES, which signifies that the entire file is loaded into memory. You can override this property to return NO 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

- dataOfType:error:

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

- fileWrapperOfType:error:

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

- readFromData:ofType:error:

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