Re: ditto in ObjC or C
Re: ditto in ObjC or C
- Subject: Re: ditto in ObjC or C
- From: Jens Miltner <email@hidden>
- Date: Tue, 3 May 2005 09:49:02 +0200
Am 03.05.2005 um 09:05 schrieb Rémy Schumm:
Hi List
I'm copying a File with java - of course, the resource fork gets lost
(e.g. the thumbnail-image on a Photoshop-File).
The "ditto" command-line-tool does exactly what I want: ditto --rsrc
copies with resource.
Question: is there some ObjC or C function somewhere that I could use
for this, e.g. access via JNI?
You could use e.g. NSTask to run ditto as an external tool.
Alternatively, take a look at
<http://developer.apple.com/samplecode/FSCopyObject/FSCopyObject.html>.
This is some C code that implements HFS+ savvy object copying. Not sure
how easy this is to integrate with java, though...
</jum>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden