MonobjcMonobjc Documented Class Library
ApplicationShouldTerminate Method (sender)

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.

Declaration Syntax
C#Visual BasicVisual C++
NSApplicationTerminateReply ApplicationShouldTerminate(
	NSApplication sender
Function ApplicationShouldTerminate ( _
	sender As NSApplication _
) As NSApplicationTerminateReply
NSApplicationTerminateReply ApplicationShouldTerminate(
	NSApplication^ sender
sender (NSApplication)
The application object that is about to be terminated.
Return Value
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.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)