Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Async File Copying?



try to spawn a thread that makes the copy:
[NSThread detachNewThreadSelector:@selector(doTheCopy:)
toTarget:myCopyObject
withObject:myObjectWithInputParams];

then in the method
- (void)doTheCopy:(NSDictionary *)params;
you would call
[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceCopyOperation ....]

fawzi

On Thursday, May 17, 2001, at 07:27 AM, Steve Gehrman wrote:

I've tried both:

[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceCopyOperation ....]

and

[[NSFileManager defaultManager] copyPath ... ]

and both of them copy files synchronously (spinning rainbow until copy is done). Is there any easy way to do a asynchronous file copy besides writing it all from scratch?

steve
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Async File Copying? (From: Steve Gehrman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.