These constants define whether an application should terminate and are used by the delegate method applicationShouldTerminate:.
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum NSApplicationTerminateReply
Public Enumeration NSApplicationTerminateReply
public enum class NSApplicationTerminateReply
Members
Member | Description |
---|---|
NSTerminateCancel | The application should not be terminated. Available in Mac OS X v10.0 and later. |
NSTerminateNow | It is OK to proceed with termination. Available in Mac OS X v10.0 and later. |
NSTerminateLater | It may be OK to proceed with termination later. Returning this value causes Cocoa to run the run loop in the NSModalPanelRunLoopMode until your application subsequently calls replyToApplicationShouldTerminate: with the value YES or NO. This return value is for delegates that need to provide document modal alerts (sheets) in order to decide whether to quit. Available in Mac OS X v10.0 and later. |
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)