Re: call C application
Re: call C application
- Subject: Re: call C application
- From: Ondra Cada <email@hidden>
- Date: Thu, 27 Apr 2006 22:51:05 +0200
Mai,
On 27.4.2006, at 22:45, email@hidden wrote:
Way 2 (UNIX way):
If you don't want to hook input/output streams (STDIN/STDOUT) then
you can simple call C-library function
system();
Rather not, in this case. The "system" function is easier to hook up
than NSTask, but (unless you are very careful) chokes on simple
spaces in file/folder names (and more).
Still, "system" is great for some tasks -- namely launching standard
system (hence the name!) commands with fixed arguments -- but I do
strongly recommend refraining from it for generic executables.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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