On Aug 18, 2006, at 1:37 PM, Charles Calvert wrote:
By opening the files in binary and just reading/writing the raw bytes
using the BinaryStream class or something similar, I presume. Will
that
copy the data fork only, or both the data and resource forks?
Just the data fork
You have to Open the resource fork to do this
There is some code on my web site that turns files into strings and
back that you can review for what you'd need to do to walk the
resources to copy them
As fast as using an API directly ? ... unsure ... I'd suspect the API
would have some performance advantage.
I would guess so too. Can you point me to a piece of sample code that
shows how to use the API functions, preferably ones that don't
mangle OS
X-compliant filenames? I Googled the web and searched the list
archives
and didn't find one.
I have to admit I can't
Maybe in Apples sample code for MoreFiles ?
But when you want/need some means to provide user feedback you may
need
to do a slightly slower copy with user feedback.
I'm okay with that, as long as the performance isn't hugely different
from what you get with Finder or ditto.
It's pretty reasonable
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>