Launching Terminal example
Launching Terminal example
- Subject: Launching Terminal example
- From: Matthew Harrison <email@hidden>
- Date: Fri, 7 Jun 2002 17:06:45 +0100
Hi all,
I'm trying to launch the Terminal from within Cocoa, running a cmndline
program,
much like system("xterm -T \"My Program\" -e <prog>") on unix
I've successfully used NSTask to launch a "script.command" file, but that
just uses the cocoa-app's stdio.
I've also tried /Applications/Utilities/.../Terminal with a .term file, but
I get 2 Terminal windows, one with the default shell, and the other with the
shell specified in the .term file.
I'm sure there was a piece of sample code on the ADC which did this, but I
can't find it now...
any ideas?
many thanks in advance,
Matthew Harrison.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.