MonobjcMonobjc Documented Class Library
BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo Method (window, modalDelegate, alertDidEndSelector, contextInfo)
NamespacesMonobjc.AppKitNSAlertBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(NSWindow, Id, IntPtr, 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 virtual void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow window,
	Id modalDelegate,
	IntPtr alertDidEndSelector,
	IntPtr contextInfo
)
Public Overridable Sub BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	window As NSWindow, _
	modalDelegate As Id, _
	alertDidEndSelector As IntPtr, _
	contextInfo As IntPtr _
)
public:
virtual void BeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSWindow^ window, 
	Id^ modalDelegate, 
	IntPtr alertDidEndSelector, 
	IntPtr contextInfo
)
Parameters
window (NSWindow)
The parent window for the sheet.
modalDelegate (Id)
The delegate for the modal-dialog session.
alertDidEndSelector (IntPtr)
Message the alert sends to modalDelegate after the user responds but before the sheet is dismissed.
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)