MonobjcMonobjc Documented Class Library
BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo Method (window, modalDelegate, contextInfo)
NamespacesMonobjc.AppKitNSAlertBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(NSWindow, SheetDidEndReturnCodeContextInfoEventHandler<(Of <<'(NSAlert>)>>), IntPtr)

Runs the receiver modally as an alert sheet attached to a specified window.

Original signature is '- (void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:(id)modalDelegate didEndSelector:(SEL)alertDidEndSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow window,
	SheetDidEndReturnCodeContextInfoEventHandler<NSAlert> modalDelegate,
	IntPtr contextInfo
)
Public Sub BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	window As NSWindow, _
	modalDelegate As SheetDidEndReturnCodeContextInfoEventHandler(Of NSAlert), _
	contextInfo As IntPtr _
)
public:
void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow^ window, 
	SheetDidEndReturnCodeContextInfoEventHandler<NSAlert^>^ modalDelegate, 
	IntPtr contextInfo
)
Parameters
window (NSWindow)
The parent window for the sheet.
modalDelegate (SheetDidEndReturnCodeContextInfoEventHandler<(Of <(<'NSAlert>)>)>)
The delegate for the modal-dialog session.
contextInfo (IntPtr)
Contextual data passed to modalDelegate in didEndSelector message.
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)