MonobjcMonobjc Documented Class Library
NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler Delegate

Invoked when the user closes the last window the application has open.

Original signature is '- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public delegate bool ApplicationShouldTerminateAfterLastWindowClosedEventHandler(
	NSApplication theApplication
Public Delegate Function ApplicationShouldTerminateAfterLastWindowClosedEventHandler ( _
	theApplication As NSApplication _
) As Boolean
public delegate bool ApplicationShouldTerminateAfterLastWindowClosedEventHandler(
	NSApplication^ theApplication
theApplication (NSApplication)
The application object whose last window was closed.
Return Value
NO if the application should not be terminated when its last window is closed; otherwise, YES to terminate the application.
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)