tags:

views:

19

answers:

1

Hello,

I have two applications:

1) A multithreaded cocoa gui app.

2) A unix command line tool.

I need to be able to launch the command line tool from cocoa app and capture everything it sends to stdout. The usual approach with fork/exec does not work - cocoa application crashes with "fork in multithread" exception. Any ideas?

Thanks, Inso.

+2  A: 

Use NSTask.

Chuck