MonobjcMonobjc Documented Class Library
OpenFileWithApplicationAndDeactivate Method (fullPath, appName, flag)
NamespacesMonobjc.AppKitNSWorkspaceOpenFileWithApplicationAndDeactivate(NSString, NSString, Boolean)

Opens the specified file and optionally deactivates the sending application.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool OpenFileWithApplicationAndDeactivate(
	NSString fullPath,
	NSString appName,
	bool flag
)
Public Overridable Function OpenFileWithApplicationAndDeactivate ( _
	fullPath As NSString, _
	appName As NSString, _
	flag As Boolean _
) As Boolean
public:
virtual bool OpenFileWithApplicationAndDeactivate(
	NSString^ fullPath, 
	NSString^ appName, 
	bool flag
)
Parameters
fullPath (NSString)
The full path to the file.
appName (NSString)
The name of the application to use when opening the file.
flag (Boolean)
If YES, the sending application is deactivated before the request is sent, allowing the opening application to become the active application.
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)