Instance Method

applicationShouldOpenUntitledFile:

Invoked immediately before opening an untitled file.

Declaration

- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;

Parameters

sender

The application object associated with the delegate.

Return Value

YES if the application should open a new untitled file or NO if it should not.

Discussion

Use this method to decide whether the application should open a new, untitled file. Note that applicationOpenUntitledFile: is invoked if this method returns YES.

See Also

Opening Files

- application:openFile:

Tells the delegate to open a single file.

- application:openFileWithoutUI:

Tells the delegate to open a file programmatically.

- application:openTempFile:

Tells the delegate to open a temporary file.

- application:openFiles:

Tells the delegate to open multiple files.

- applicationOpenUntitledFile:

Tells the delegate to open an untitled file.