I'm creating a Cocoa Application, which will need to run the rails
command. This command generates an output, and streams it to stdout
. I want to show this output to the user in an NSTextView
(so basicly stream the stdout
to the NSTextView
). My application should not 'hang' when the command is running (e.g. the git
command takes a long time to finish uploading). I don't really care about how I should run the command, as long as I can set the working directory.
Using a Ruby framework for Cocoa is no option, as I also need to do this for non-ruby commands like git
.
Can anyone help me? Thanks