On Oct 24, 2010, at 12:03 PM, eveningnick eveningnick wrote:
> I am wondering, if NSTask can be replaced with low-level fork/exec
> calls. Looking through forums, i often met statements that launching a
> process with "fork/exec" is not an "OS X way", especially if i am
> using Cocoa framework (a
On 24 oct. 2010, at 20:03, eveningnick eveningnick wrote:
>
>> Not great but should work.
>> Better would be to use LaunchServices, if not possible I would use
>> SMJobSubmit() (ServicesManagement framework).
> Could you please explain why? What steps do i omit, if using fork/exec?
LaunchServi
On 24 Oct 2010, at 18:48, Thomas Clement wrote:
> On 24 oct. 2010, at 19:03, eveningnick eveningnick wrote:
>
>> Hello!
>> I am wondering, if NSTask can be replaced with low-level fork/exec
>> calls. Looking through forums, i often met statements that launching a
>> process with "fork/exec" is n
eveningnick wrote::
Basically this is the question about using fork in MacOS. But if there
are other ways to launch a process, i'd appreciate if someone shared
:)
Maybe setup a launchd plist specifying the target executable you want
to run, then ask launchd to run it by executing the 'laun
>
> Are you sure about that?
No, but by reading all the topics of people, who tried to launch a
simple (non bundled) binary with it, i left that idea - according to
gossips Launch Services act like Finder's doubleclick - if you
doubleclick on a binary file, it just won't work. And unfortunately on
On 24 oct. 2010, at 19:03, eveningnick eveningnick wrote:
> Hello!
> I am wondering, if NSTask can be replaced with low-level fork/exec
> calls. Looking through forums, i often met statements that launching a
> process with "fork/exec" is not an "OS X way", especially if i am
> using Cocoa frame
Hello!
I am wondering, if NSTask can be replaced with low-level fork/exec
calls. Looking through forums, i often met statements that launching a
process with "fork/exec" is not an "OS X way", especially if i am
using Cocoa framework (and i am using Cocoa!).
What i want to do - is to launch an appl