Last active
December 27, 2018 18:43
-
-
Save keefo/6099976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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