Re: Saving is so darn easy!
Re: Saving is so darn easy!
- Subject: Re: Saving is so darn easy!
- From: David Remahl <email@hidden>
- Date: Tue, 02 Apr 2002 00:53:02 +0200
>
Ok, i've got it figured out. Now a new problem, I want to copy a file with
>
this method...
>
>
(BOOL)copyPath:(NSString *)source toPath:(NSString *)destination
>
handler:handler
>
>
but I don't know what handler is and if I use this in a method:
>
>
[xxxxx copyPath:~/Users/File.txt toPath:/Library/ handler:]
>
>
But I have a few questions:
>
>
1. What should I send this method? (that's why xxxxx is there)
[[NSFileManager defaultManager] copyPath:@"/Users/whoever/File.txt"
toPath:@"/Wherever/Whatever.txt"];
>
2. What is the handler?
A helper object that will be notified with progress.
>
3. What should I put for the copyPath: and toPath: to go from one place on
>
the hard drive to another IF I don't know what the name of the hard drive is
>
to prefix it?
??? I'm not sure I quite get what you're saying here.../ is the startup
drive, and other disks are normally mounted at /Volumes/DriveName
How would you select _what_ drive to copy to if you don't know its name?
>
I've read the manuel, now can you help?
No you have not. Or you read it but failed to comprehend it either because
of lacking C skills or because you didn't read ObjC.pdf.
/ David Remahl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.