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 Basic | Visual C++ |
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)