FROM : Adam R. Maxwell
DATE : Tue Aug 01 03:33:14 2006
On Jul 31, 2006, at 17:06, Mike Abdullah wrote:
> OK, that rather surprises me - why haven't Apple done a decent file
> copying system in Cocoa yet! Maybe I should file a request.
>
> So, I downloaded MoreFilesX. It's readme says quite a bit about
> the HFD+ APIs. Am I right in thinking that the code will use the
> HFS+ if suitable, but that it will still work for non-HFS+ operations?
You might want to look at FSCopyObject; I think it's more modern (and
easier to use) than MoreFilesX <http://developer.apple.com/samplecode/
FSCopyObject/index.html>. It loses xattrs on 10.4, though,
unfortunately.
If you can require 10.4, take a look at FSCopyObjectAsync, which has
a callback for periodic updates. These functions are only documented
in the Files.h header, though.
-- Adam
DATE : Tue Aug 01 03:33:14 2006
On Jul 31, 2006, at 17:06, Mike Abdullah wrote:
> OK, that rather surprises me - why haven't Apple done a decent file
> copying system in Cocoa yet! Maybe I should file a request.
>
> So, I downloaded MoreFilesX. It's readme says quite a bit about
> the HFD+ APIs. Am I right in thinking that the code will use the
> HFS+ if suitable, but that it will still work for non-HFS+ operations?
You might want to look at FSCopyObject; I think it's more modern (and
easier to use) than MoreFilesX <http://developer.apple.com/samplecode/
FSCopyObject/index.html>. It loses xattrs on 10.4, though,
unfortunately.
If you can require 10.4, take a look at FSCopyObjectAsync, which has
a callback for periodic updates. These functions are only documented
in the Files.h header, though.
-- Adam
| Related mails | Author | Date |
|---|---|---|
| Mike Abdullah | Jul 31, 18:04 | |
| Scott Ribe | Jul 31, 19:32 | |
| Mike Abdullah | Aug 1, 02:06 | |
| Adam R. Maxwell | Aug 1, 03:33 | |
| Mike Abdullah | Aug 1, 17:38 | |
| Shawn Erickson | Aug 1, 17:51 | |
| Mike Abdullah | Aug 1, 19:50 |






Cocoa mail archive

