Re: NSWorkspace launchApplication withArguments?
Re: NSWorkspace launchApplication withArguments?
- Subject: Re: NSWorkspace launchApplication withArguments?
- From: Clark Cox <email@hidden>
- Date: Mon, 24 Jan 2005 12:13:40 -0500
On Mon, 24 Jan 2005 17:01:39 +0000, Robert Tillyard
<email@hidden> wrote:
> I've found in the documentation that to launch a GUI application from
> my app I need to use...
>
> [[NSWorkspace sharedWorkspace] launchApplication:@"OtherApp"];
>
> From previous discussion on this list it appears that NSTask shouldn't
> be used to run a GUI application but how would I run and pass command
> line arguments to a GUI application?
In general, you don't; Most GUI apps aren't written with receiving
command line arguments in mind. Additionally, what would you do if the
application was already running? There are other ways to pass
information to GUI applications (Distributed Objects, AppleEvents,
POSIX Pipes, Raw Sockets, Shared Memory, etc.).
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden