MonobjcMonobjc Documented Class Library
BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo Method (path, name, docWindow, modalDelegate, didEndSelector, contextInfo)
NamespacesMonobjc.AppKitNSSavePanelBeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(NSString, NSString, NSWindow, Id, IntPtr, 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 virtual void BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString path,
	NSString name,
	NSWindow docWindow,
	Id modalDelegate,
	IntPtr didEndSelector,
	IntPtr contextInfo
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.")> _
Public Overridable Sub BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	path As NSString, _
	name As NSString, _
	docWindow As NSWindow, _
	modalDelegate As Id, _
	didEndSelector As IntPtr, _
	contextInfo As IntPtr _
)
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead.")]
public:
virtual void BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString^ path, 
	NSString^ name, 
	NSWindow^ docWindow, 
	Id^ modalDelegate, 
	IntPtr didEndSelector, 
	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 (Id)
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.
didEndSelector (IntPtr)
Message sent to modalDelegate after the modal session has ended, but before dismissing the Save panel. didEndSelector may dismiss the Save panel itself; otherwise, it is dismissed on return from the method. The corresponding method should have the following signature:
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)