PDA

View Full Version : Buttons to run shell commands?


CharlieJ
October 27th, 2009, 10:57 PM
Hi Guys, I'm looking to write a simple application in Objective-C (Please move this topic)

I have designed my GUI, I have two buttons, I want one to execute a shell and the other to execute the ctrl-c command.


So I want one button to start a service, and the other to stop the service.
Purely for people that aren't good with terminal.

Could somebody please advise me the best way to do this?

I'm a noob at Objective-C so please go easy :)

I've been reading stuff about NStask... I'm confused.
Charlie