MonobjcMonobjc Documented Class Library
BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo Method (sheet, docWindow, modalDelegate, contextInfo)
NamespacesMonobjc.AppKitNSApplicationBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(NSWindow, NSWindow, SheetDidEndReturnCodeContextInfoEventHandler<(Of <<'(NSWindow>)>>), IntPtr)

Starts a document modal session.

Original signature is '- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow sheet,
	NSWindow docWindow,
	SheetDidEndReturnCodeContextInfoEventHandler<NSWindow> modalDelegate,
	IntPtr contextInfo
)
Public Sub BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	sheet As NSWindow, _
	docWindow As NSWindow, _
	modalDelegate As SheetDidEndReturnCodeContextInfoEventHandler(Of NSWindow), _
	contextInfo As IntPtr _
)
public:
void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow^ sheet, 
	NSWindow^ docWindow, 
	SheetDidEndReturnCodeContextInfoEventHandler<NSWindow^>^ modalDelegate, 
	IntPtr contextInfo
)
Parameters
sheet (NSWindow)
The window object representing the sheet you want to display.
docWindow (NSWindow)
The window object to which you want to attach the sheet.
modalDelegate (SheetDidEndReturnCodeContextInfoEventHandler<(Of <(<'NSWindow>)>)>)
The delegate object that defines your didEndSelector method. If nil, the method in didEndSelector is not called.
contextInfo (IntPtr)
A pointer to the context info you want passed to the didEndSelector method when the sheet�s modal session ends.
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)