Re: File copying not copying...
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.