Next Page > Hide TOC

NSQuitCommand Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac OS X v10.0 and later.
Companion guide
Declared in
NSScriptStandardSuiteCommands.h

Overview

An instance of NSQuitCommand quits the specified application. The command may optionally specify how to handle modified documents (automatically save changes, don’t save them, or ask the user). For details, see the description for the quit command in "Apple Events Sent By the Mac OS" in How Cocoa Applications Handle Apple Events inCocoa Scripting Guide.

NSQuitCommand is part of Cocoa’s built-in scripting support. Most applications don’t need to subclass NSQuitCommand or call its methods.

Tasks

Accessing Options

Instance Methods

saveOptions

Returns a constant indicating how to deal with closing any modified documents.

- (NSSaveOptions)saveOptions

Return Value

A constant indicating how to deal with closing any modified documents.

The default value returned is NSSaveOptionsAsk. See "Constants" in NSCloseCommand for a list of possible return values.

Availability
Declared In
NSScriptStandardSuiteCommands.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.