Re: ditto in ObjC or C
Re: ditto in ObjC or C
- Subject: Re: ditto in ObjC or C
- From: Rémy Schumm <email@hidden>
- Date: Wed, 4 May 2005 11:12:24 +0200
Hi List
thanks for your contributions.
th FSCopyObject seems to be somewhat an overkill for an simple file-
copy... (for me as a simple Java Programmer...)
NSFileManager really does the job and copies a rsrc (I didn't know),
but it doesn't exist in Java. I will try to use it over the Java Bridge.
thanks,
Rémy
Am 03.05.2005 um 17:21 schrieb Finlay Dobbie:
Since this is the Cocoa list, I'll point out that NSFileManager has
kept the resource fork intact since 10.2 (IIRC).
If you're doing it from a Java application, you can use the
FSCopyObject sample code via JNI (I believe this functionality is
exposed by the File Manager API in Carbon on Tiger, too), or use the
NSFileManager from the Java Bridge.
Launching another task to do your bidding seems like an unclean
approach to me.
--
Zürcher Hochschule Winterthur - ZHW
(Zurich University of Applied Science Winterthur, Switzerland)
Rémy Schumm, ZHW - T, E222, Postfach 805, 8401 Winterthur
dipl. Ing. FH, Assistent Softwareentwicklung, Dept. T,
tel. direkt +41 52 2677 490 gsm/mms/sms +41 79 21 1234 1
http://www.zhwin.ch/~smr - PGP ID 0x59BA4E81 - Mac OS X Tiger on G5
Content Security by MailMarshal
_______________________________________________
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