• 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: 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.

  • Follow-Ups:
    • Re: Saving is so darn easy!
      • From: Charles Srstka <email@hidden>
References: 
 >Saving is so darn easy! (From: deekpyro <email@hidden>)

  • Prev by Date: Re: DO question.
  • Next by Date: Re: More re: Carbon Events vs Cocoa Events
  • Previous by thread: Saving is so darn easy!
  • Next by thread: Re: Saving is so darn easy!
  • Index(es):
    • Date
    • Thread