Mac Developer Library

Developer

Foundation Framework Reference NSQuitCommand Class Reference

Options
Deployment Target:

On This Page
Language:

NSQuitCommand

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 in Cocoa Scripting Guide inCocoa Scripting Guide. More...

Inheritance


Conforms To


Import Statement


import Foundation @import Foundation;

Availability


Available in OS X v10.0 and later.
  • Returns a constant indicating how to deal with closing any modified documents.

    Declaration

    Swift

    var saveOptions: NSSaveOptions { get }

    Objective-C

    @property(readonly) 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.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.