MonobjcMonobjc Documented Class Library
BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo Method (absoluteDirectoryPath, filename, fileTypes, modelessDelegate, contextInfo)
NamespacesMonobjc.AppKitNSOpenPanelBeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(NSString, NSString, NSArray, SheetDidEndReturnCodeContextInfoEventHandler<(Of <<'(NSOpenPanel>)>>), IntPtr)

Presents a modeless Open panel. (Deprecated in Mac OS X v10.6. Use beginWithCompletionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.)

Original signature is '- (void)beginForDirectory:(NSString *)absoluteDirectoryPath file:(NSString *)filename types:(NSArray *)fileTypes modelessDelegate:(id)modelessDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginWithCompletionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")]
public void BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(
	NSString absoluteDirectoryPath,
	NSString filename,
	NSArray fileTypes,
	SheetDidEndReturnCodeContextInfoEventHandler<NSOpenPanel> modelessDelegate,
	IntPtr contextInfo
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use beginWithCompletionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")> _
Public Sub BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo ( _
	absoluteDirectoryPath As NSString, _
	filename As NSString, _
	fileTypes As NSArray, _
	modelessDelegate As SheetDidEndReturnCodeContextInfoEventHandler(Of NSOpenPanel), _
	contextInfo As IntPtr _
)
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use beginWithCompletionHandler: instead. You can set absoluteDirectoryPath using setDirectoryURL:, and you can set fileTypes using setAllowedFileTypes:.")]
public:
void BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(
	NSString^ absoluteDirectoryPath, 
	NSString^ filename, 
	NSArray^ fileTypes, 
	SheetDidEndReturnCodeContextInfoEventHandler<NSOpenPanel^>^ modelessDelegate, 
	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:.
modelessDelegate (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 modelessDelegate 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)