MonobjcMonobjc Documented Class Library
ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo Method (windowController, delegate, shouldCloseSelector, contextInfo)
NamespacesMonobjc.AppKitNSDocumentShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(NSWindowController, Id, IntPtr, IntPtr)

Invokes shouldCloseSelector with the result of canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: if the the specified window controller that is closing is the last one or is marked as causing the document to close.

Original signature is '- (void)shouldCloseWindowController:(NSWindowController *)windowController delegate:(id)delegate shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(
	NSWindowController windowController,
	Id delegate,
	IntPtr shouldCloseSelector,
	IntPtr contextInfo
)
Public Overridable Sub ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo ( _
	windowController As NSWindowController, _
	delegate As Id, _
	shouldCloseSelector As IntPtr, _
	contextInfo As IntPtr _
)
public:
virtual void ShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo(
	NSWindowController^ windowController, 
	Id^ delegate, 
	IntPtr shouldCloseSelector, 
	IntPtr contextInfo
)
Parameters
windowController (NSWindowController)
The window controller that is closed.
delegate (Id)
The delegate to which the selector message is sent.
shouldCloseSelector (IntPtr)
The selector of the message sent to the delegate.
contextInfo (IntPtr)
Object passed with the callback to provide any additional context information.
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)