Sent to notify the delegate that the application is about to terminate.
Original signature is '- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public delegate NSApplicationTerminateReply ApplicationShouldTerminateEventHandler( NSApplication sender )
Public Delegate Function ApplicationShouldTerminateEventHandler ( _ sender As NSApplication _ ) As NSApplicationTerminateReply
public delegate NSApplicationTerminateReply ApplicationShouldTerminateEventHandler( NSApplication^ sender )

- sender (NSApplication)
- The application object that is about to be terminated.

One of the values defined in NSApplicationTerminateReply constants indicating whether the application should terminate. For compatibility reasons, a return value of NO is equivalent to NSTerminateCancel, and a return value of YES is equivalent to NSTerminateNow.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)