Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: Simple File Copy



I would suggest using MoreFilesX to do it. It has lots of copy routines that save time.

Also you should steer away from all the "H" File Manager routines if possible - they are from older Mac OS'es. Try to use FSRef-based routines and if those don't do what you need, then try FSSpec-based routines. I think MoreFilesX provides a POSIX-path to FSRef routine somewhere.

Best,

Michael Amorose
Orbital Launch & Lift, Inc.
http://www.orbitallaunch.com

At 4:10 PM +0500 11/18/04, Ivan Kharin wrote:
 >> I'm newbie in Mac World. And need advice.
J> Welcome!

Thanks :)

J> Everyone seems to fall over this: PBHCopyFileSync only works on remote
J> file systems which support it - it's to allow the copy to take place on
J> the remote machine without the data having to go back and forth. What
J> you need is the FSCopyObject code from
J> http://developer.apple.com/samplecode/FSCopyObject/FSCopyObject.html.

Well... It's really big pice of code :)
If i understand correctly, i need to HCreate/HOpen/HWrite/HClose by hand?

Any suggestion to implement SimpleFileCopy using POSIX pathnames instead FSRef's?

--
Ivan Kharin

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Simple File Copy (From: Ivan Kharin <email@hidden>)
 >Re: Simple File Copy (From: Jerry <email@hidden>)
 >Re[2]: Simple File Copy (From: Ivan Kharin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.