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 Basic | Visual C++ |
public event NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler ApplicationShouldTerminateAfterLastWindowClosed
Public Event ApplicationShouldTerminateAfterLastWindowClosed As NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler
public: event NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler^ ApplicationShouldTerminateAfterLastWindowClosed { void add (NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler^ value); void remove (NSApplication..::..ApplicationShouldTerminateAfterLastWindowClosedEventHandler^ value); }
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)