MonobjcMonobjc Documented Class Library
PerformFileOperationSourceDestinationFilesTag Method (operation, source, destination, files, tag)
NamespacesMonobjc.AppKitNSWorkspacePerformFileOperationSourceDestinationFilesTag(NSString, NSString, NSString, NSArray, NSInteger%)

Performs a file operation on a set of files in a particular directory.

Original signature is '- (BOOL)performFileOperation:(NSString *)operation source:(NSString *)source destination:(NSString *)destination files:(NSArray *)files tag:(NSInteger *)tag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool PerformFileOperationSourceDestinationFilesTag(
	NSString operation,
	NSString source,
	NSString destination,
	NSArray files,
	out NSInteger tag
)
Public Overridable Function PerformFileOperationSourceDestinationFilesTag ( _
	operation As NSString, _
	source As NSString, _
	destination As NSString, _
	files As NSArray, _
	<OutAttribute> ByRef tag As NSInteger _
) As Boolean
public:
virtual bool PerformFileOperationSourceDestinationFilesTag(
	NSString^ operation, 
	NSString^ source, 
	NSString^ destination, 
	NSArray^ files, 
	[OutAttribute] NSInteger% tag
)
Parameters
operation (NSString)
The file operation to perform. The possible values for this parameter are described in “File Operations.”
source (NSString)
The full path to the directory containing the files on which to operate.
destination (NSString)
The full path to the destination directory of the operation.
files (NSArray)
An array of NSString objects specifying the names of the files and directories to be manipulated. Each string must not contain any path information other than the name of the file or directory. In other words, all of the files and directories must be located in the source directory and not in one if its subdirectories.
tag (NSInteger%)
On input, a integer variable; on return, this variable contains a negative integer if the operation fails, 0 if the operation was performed synchronously and succeeded, or a positive integer if the operation was performed asynchronously. If the value is a positive integer, the value is a tag that identifies the requested file operation.
Return Value
YES if the operation succeeded; 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)