Re: Updated Copy...
Re: Updated Copy...
- Subject: Re: Updated Copy...
- From: Chris Parker <email@hidden>
- Date: Thu, 13 Dec 2001 13:25:01 -0800
Riccardo,
I've filed a bug against the NSFileManager documentation and that
example. If you're still having problems with this, please don't
hesitate to contact me.
You shouldn't have to get the file into an NSData and then put it back
out to disk, though. copyPath:toPath:handler: -does- work as
advertised, the example just needs to supply a target filename in
addition to the path leading up to it for the destination.
.chris
--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer
On Thursday, December 13, 2001, at 10:46 AM, Riccardo Santato wrote:
You just forgot that _programmer's_ API is not (and I personally think
it's
right) as rich in guessing your intentions as the _user's_ interface of
"cp"
is ;)
I've been a little idiot in not remembering that "cp" is the Terminal
command for copying files...sorry !
BTW I've tried to use the simple code found as an example in selector
"copyPath: toPath: handler:" and ...it doesn't work !!
Obviously I changed it a little bit to make it points to existing files
and directories (with read/write permission), but nothing more !
Nothing to do...
I've tried even reading the datas form an existing file and then
creating
a file filled with that NSData... nothing the same...
FRUSTRATION !! :-((
Apple documentation, why are you so horrible ?!?