• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving is so darn easy!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Saving is so darn easy! (From: deekpyro <email@hidden>)

  • Prev by Date: Re: More re: Carbon Events vs Cocoa Events
  • Next by Date: Re: Saving is so darn easy!
  • Previous by thread: Re: Saving is so darn easy!
  • Next by thread: Just starting out?
  • Index(es):
    • Date
    • Thread