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++ |
bool ApplicationShouldTerminateAfterLastWindowClosed( NSApplication theApplication )
Function ApplicationShouldTerminateAfterLastWindowClosed ( _ theApplication As NSApplication _ ) As Boolean
bool ApplicationShouldTerminateAfterLastWindowClosed( NSApplication^ theApplication )
Parameters
- 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)