MonobjcMonobjc Documented Class Library
WindowShouldClose Event
NamespacesMonobjc.AppKitNSWindow..::..NSWindowDelegateEventDispatcherWindowShouldClose

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++
public event NSWindow..::..WindowShouldCloseEventHandler WindowShouldClose
Public Event WindowShouldClose As NSWindow..::..WindowShouldCloseEventHandler
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)