MonobjcMonobjc Documented Class Library
BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo Method (absoluteDirectoryPath, filename, fileTypes, modelessDelegate, didEndSelector, contextInfo)
NamespacesMonobjc.AppKitNSOpenPanelBeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(NSString, NSString, NSArray, Id, IntPtr, 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 virtual void BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(
	NSString absoluteDirectoryPath,
	NSString filename,
	NSArray fileTypes,
	Id modelessDelegate,
	IntPtr didEndSelector,
	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 Overridable Sub BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo ( _
	absoluteDirectoryPath As NSString, _
	filename As NSString, _
	fileTypes As NSArray, _
	modelessDelegate As Id, _
	didEndSelector As IntPtr, _
	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:
virtual void BeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo(
	NSString^ absoluteDirectoryPath, 
	NSString^ filename, 
	NSArray^ fileTypes, 
	Id^ modelessDelegate, 
	IntPtr didEndSelector, 
	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 (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.
didEndSelector (IntPtr)
The message sent to modelessDelegate after the panel’s session has ended, but before dismissing the Open panel. didEndSelector may dismiss the Open panel itself; otherwise, it will be dismissed on return from the method. The corresponding method should have the following signature:
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)