MonobjcMonobjc Documented Class Library
RunModalForDirectoryFile Method (path, filename)
NamespacesMonobjc.AppKitNSSavePanelRunModalForDirectoryFile(NSString, NSString)

Initializes the panel to the directory and file specified, if any, then displays it and begins its modal event loop. (Deprecated in Mac OS X v10.6. Use runModal instead.)

Original signature is '- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)filename'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use runModal instead.")]
public virtual NSInteger RunModalForDirectoryFile(
	NSString path,
	NSString filename
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use runModal instead.")> _
Public Overridable Function RunModalForDirectoryFile ( _
	path As NSString, _
	filename As NSString _
) As NSInteger
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use runModal instead.")]
public:
virtual NSInteger RunModalForDirectoryFile(
	NSString^ path, 
	NSString^ filename
)
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.
filename (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.
Return Value
NSFileHandlingPanelOKButton (if the user clicks the OK button) or NSFileHandlingPanelCancelButton (if the user clicks the Cancel button).
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)