views:

49

answers:

1

Hey guys,

I know there is a lot of info out there on how to do this, but I was wondering if using NSTask is the best way to call command line arguments from a Cocoa App. Also, if I wanted to use something like "dns-sd ..." (something that doesn't end until interrupted or killed), would calling a kill on it using NSTask be the best way to close it?

Thanks!

A: 

You can also use fork and execv().

Leibowitzn
Yeah, but that's exactly what `NSTask` uses (well, probably `fork` and `execve`), so why go to the bother of recreating `NSTask` functionality when it already exists for you?
Dave DeLong
ahh, you're right
Leibowitzn