Skip to content

Instantly share code, notes, and snippets.

@keefo
Last active December 27, 2018 18:43
Show Gist options
  • Save keefo/6099976 to your computer and use it in GitHub Desktop.
Save keefo/6099976 to your computer and use it in GitHub Desktop.
#import <Cocoa/Cocoa.h>
@interface AsyncCopyController : NSObject
-(OSStatus)copySource : (NSString *)aSource ToDestination: (NSString *)aDestDir setDelegate : (id)object;
//delegate method
-(void)didReceiveCurrentPath : (NSString *)curremtItemPath bytesCompleted : (unsigned long long)floatBytesCompleted currentStageOfFileOperation : (unsigned long)stage;
-(void)didCopyOperationComplete : (BOOL)boolean;
-(void)didReceiveCopyError : (NSString *)Error;
-(void)cancelAllAsyncCopyOperation;
@end
#import <Cocoa/Cocoa.h>
@@implementation AsyncCopyController
-(OSStatus)copySource : (NSString *)aSource ToDestination: (NSString *)aDestDir setDelegate : (id)object;
{
return 0;
}
-(void)didReceiveCurrentPath : (NSString *)curremtItemPath bytesCompleted : (unsigned long long)floatBytesCompleted currentStageOfFileOperation : (unsigned long)stage;
{
}
-(void)didCopyOperationComplete : (BOOL)boolean;
{
}
-(void)didReceiveCopyError : (NSString *)Error;
{
}
-(void)cancelAllAsyncCopyOperation;
{
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment