• 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: File copying not copying...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File copying not copying...


  • Subject: Re: File copying not copying...
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 13 Apr 2002 12:54:10 +0200

On Saturday, April 13, 2002, at 05:37 , deekpyro wrote:

In the declaration below I tell the app when it closes to copy a file over
depending on if theCheckBoxWBC is check or not (state), it compiles and runs
fin but doesn't copy the file over...hum...any thoughts?

[[NSFileManager defaultManager] copyPath:@"/Applications/Moo X
Folder/Backups/com.apple.windowserver.plist"
toPath:@"/Library/Preferences/com.apple.windowserver.plist" handler:nil];

You haven't sufficient access rights for /Library/Preferences, I guess. Might be a number of other reasons, too...

I would also like to know how to create an error message if these files
can't be found so if anyone knows how to do that that would be great.

Check the return value and/or use the handler. Both are nicely documented.
---
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: 
 >File copying not copying... (From: deekpyro <email@hidden>)

  • Prev by Date: Best way to save this doc?
  • Next by Date: Re: mixing c with obj c
  • Previous by thread: File copying not copying...
  • Next by thread: RE: File copying not copying...
  • Index(es):
    • Date
    • Thread