title: How do you run terminal shell commands from a xcode c project and get the return results from terminal?
body: <p>I have been working on a project and am wondering how it is possible to send a terminal command in xcode and display results in a popup. I dont want to use the system(); method because it opens terminal. I know NSTasks can be used, i just dont know how to use it. Thank you everyone! (BTW this is for macosx not ios)</p>