MonobjcMonobjc Documented Class Library
MovePathToPathHandler Method (source, destination, handler)
NamespacesMonobjc.FoundationNSFileManagerMovePathToPathHandler(NSString, NSString, Id)

Moves the directory or file specified by a given path to a different location in the file system identified by another path. (Deprecated in Mac OS X v10.5. Use moveItemAtPath:toPath:error: instead.)

Original signature is '- (BOOL)movePath:(NSString *)source toPath:(NSString *)destination handler:(id)handler'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use moveItemAtPath:toPath:error: instead.")]
public virtual bool MovePathToPathHandler(
	NSString source,
	NSString destination,
	Id handler
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use moveItemAtPath:toPath:error: instead.")> _
Public Overridable Function MovePathToPathHandler ( _
	source As NSString, _
	destination As NSString, _
	handler As Id _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use moveItemAtPath:toPath:error: instead.")]
public:
virtual bool MovePathToPathHandler(
	NSString^ source, 
	NSString^ destination, 
	Id^ handler
)
Parameters
source (NSString)
The path of a file or directory to move. source must exist.
destination (NSString)
The path to which source is moved. destination must not yet exist. The destination path must end in a filename; there is no implicit adoption of the source filename.
handler (Id)
An object that responds to the callback messages fileManager:willProcessPath: and fileManager:shouldProceedAfterError:. You can specify nil for handler; if you do so and an error occurs, the method automatically returns NO.
Return Value
YES if the move operation is successful. If the operation is not successful, but the handler method fileManager:shouldProceedAfterError: returns YES, movePath:toPath:handler: also returns YES; otherwise returns 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.Foundation (Module: Monobjc.Foundation)