MonobjcMonobjc Documented Class Library
WindowShouldClose Method (sender)
NamespacesMonobjc.AppKitINSWindowDelegateWindowShouldClose(Id)

Tells the delegate that the user has attempted to close a window or the window has received a performClose: message.

Original signature is '- (BOOL)windowShouldClose:(id)sender'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
bool WindowShouldClose(
	Id sender
)
Function WindowShouldClose ( _
	sender As Id _
) As Boolean
bool WindowShouldClose(
	Id^ sender
)
Parameters
sender (Id)
The window being closed.
Return Value
YES to allow sender to be closed; otherwise, NO.
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)