Re: Saving is so darn easy!
Re: Saving is so darn easy!
- Subject: Re: Saving is so darn easy!
- From: Ondra Cada <email@hidden>
- Date: Tue, 2 Apr 2002 00:49:14 +0200
On Tuesday, April 2, 2002, at 12:37 , deekpyro wrote:
I've read the manuel, now can you help?
Well, not really, since these answers *are* there in *plain* English. So,
I fear you are bound to find another bunch of problems round the next
corner :(
Anyway:
[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]
2. What is the handler?
nil
(or an object which would be informed how the copying goes, and asked how
to solve potential problems. For first working version of your application
nil is enough.)
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?
Just use the path the very same way you got it from NSOpenPanel or from
the pasteboard if files were dragged, or from the NSBundle methods, or
whatever.
If the path is written into a textfield, do check NSString.html for those
path methods (like stringByStandardizingPath, which is probably the most
generic one).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.