MonobjcMonobjc Documented Class Library
OpenFileWithApplication Method (fullPath, appName)
NamespacesMonobjc.AppKitNSWorkspaceOpenFileWithApplication(NSString, NSString)

Opens a file using the specified application.

Original signature is '- (BOOL)openFile:(NSString *)fullPath withApplication:(NSString *)appName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool OpenFileWithApplication(
	NSString fullPath,
	NSString appName
)
Public Overridable Function OpenFileWithApplication ( _
	fullPath As NSString, _
	appName As NSString _
) As Boolean
public:
virtual bool OpenFileWithApplication(
	NSString^ fullPath, 
	NSString^ appName
)
Parameters
fullPath (NSString)
The full path to the file.
appName (NSString)
The name of the application to use when opening the file.
Return Value
YES if the file was successfully opened; otherwise, NO.
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)