MonobjcMonobjc Documented Class Library
BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo Method (path, name, docWindow, modalDelegate, contextInfo)
NamespacesMonobjc.AppKitNSSavePanelBeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(NSString, NSString, NSWindow, SheetDidEndReturnCodeContextInfoEventHandler<(Of <<'(NSSavePanel>)>>), IntPtr)

Presents a Save panel as a sheet with a specified path and, optionally, a specified file in that path. (Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.)

Original signature is '- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name 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++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.")]
public void BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString path,
	NSString name,
	NSWindow docWindow,
	SheetDidEndReturnCodeContextInfoEventHandler<NSSavePanel> modalDelegate,
	IntPtr contextInfo
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.")> _
Public Sub BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	path As NSString, _
	name As NSString, _
	docWindow As NSWindow, _
	modalDelegate As SheetDidEndReturnCodeContextInfoEventHandler(Of NSSavePanel), _
	contextInfo As IntPtr _
)
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.")]
public:
void BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString^ path, 
	NSString^ name, 
	NSWindow^ docWindow, 
	SheetDidEndReturnCodeContextInfoEventHandler<NSSavePanel^>^ modalDelegate, 
	IntPtr contextInfo
)
Parameters
path (NSString)
Directory whose files the panel displays. When nil, the directory is the same directory used in the previous invocation of the panel; this is probably the best choice for most situations.
name (NSString)
Specifies a particular file in path that is selected when the Save panel is presented to a user. When nil, no file is initially selected.
docWindow (NSWindow)
If not nil, the Save panel slides down as a sheet running as a document modal window in docWindow. If nil, the behavior defaults to a standalone modal window.
modalDelegate (SheetDidEndReturnCodeContextInfoEventHandler<(Of <(<'NSSavePanel>)>)>)
This is not the same as a delegate assigned to the panel. This delegate is temporary and the relationship only lasts until the panel is dismissed. The NSSavePanel object does not retain the modal delegate.
contextInfo (IntPtr)
Context information passed to modalDelegate in the 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)