MonobjcMonobjc Documented Class Library
BeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo Method (absoluteDirectoryPath, filename, fileTypes, docWindow, modalDelegate, contextInfo)
NamespacesMonobjc.AppKitNSOpenPanelBeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo(NSString, NSString, NSArray, NSWindow, SheetDidEndReturnCodeContextInfoEventHandler<(Of <<'(NSOpenPanel>)>>), IntPtr)

Presents an Open panel as a sheet with the directory specified by absoluteDirectoryPath and optionally the file specified by filename selected. (Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.)

Original signature is '- (void)beginSheetForDirectory:(NSString *)absoluteDirectoryPath file:(NSString *)filename types:(NSArray *)fileTypes 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. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")]
public void BeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString absoluteDirectoryPath,
	NSString filename,
	NSArray fileTypes,
	NSWindow docWindow,
	SheetDidEndReturnCodeContextInfoEventHandler<NSOpenPanel> modalDelegate,
	IntPtr contextInfo
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")> _
Public Sub BeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo ( _
	absoluteDirectoryPath As NSString, _
	filename As NSString, _
	fileTypes As NSArray, _
	docWindow As NSWindow, _
	modalDelegate As SheetDidEndReturnCodeContextInfoEventHandler(Of NSOpenPanel), _
	contextInfo As IntPtr _
)
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use beginSheetModalForWindow:completionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")]
public:
void BeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo(
	NSString^ absoluteDirectoryPath, 
	NSString^ filename, 
	NSArray^ fileTypes, 
	NSWindow^ docWindow, 
	SheetDidEndReturnCodeContextInfoEventHandler<NSOpenPanel^>^ modalDelegate, 
	IntPtr contextInfo
)
Parameters
absoluteDirectoryPath (NSString)
The 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.
filename (NSString)
Specifies a particular file in absoluteDirectoryPath that is selected when the Open panel is presented to the user. When nil, no file is initially selected.
fileTypes (NSArray)
An array of file extensions and/or HFS file types. Specifies the files the panel allows the user to select. nil makes all files in absoluteDirectoryPath selectable by the user. An array of types passed in here will override one set using setAllowedFileTypes:.
docWindow (NSWindow)
The window to open the sheet on.
modalDelegate (SheetDidEndReturnCodeContextInfoEventHandler<(Of <(<'NSOpenPanel>)>)>)
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..
contextInfo (IntPtr)
Any 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)