Re: Relying on shell tools to be installed? Where do you find this out?
Re: Relying on shell tools to be installed? Where do you find this out?
- Subject: Re: Relying on shell tools to be installed? Where do you find this out?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 23 Jun 2005 11:09:52 -0400
- Organization: Rogue Research
On 2005-06-22 18:40, Theodore H. Smith said:
>I'm trying to get ZIP working in a Cocoa app of mine.
And are you planning on using system() to call the 'zip' command line
application? If so, know that there are risks to doing so... For example:
<http://lists.apple.com/archives/Carbon-dev/2005/Mar/msg00679.html>
Maybe instead there is a library in /usr/lib you can link to instead?
>For example, I'm thinking of using "ditto", which I think looks like
To copy files you are better off using
<http://developer.apple.com/samplecode/FSCopyObject/FSCopyObject.html>
than calling 'ditto'.
>I'm not really looking for an answer on any particular shell tool
>here, more just a general way so I can find out for sure for myself.
Basically, you should do such things as a last resort. I'm not saying
never do it, just that its not the preferred solution.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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