Re: Carbon Run Command
Subject : Re: Carbon Run Command
From: Chris Espinosa <email@hidden >
Date: Tue, 7 Aug 2007 12:29:11 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
On Aug 7, 2007, at 12:16 PM, Paul McEwan wrote:
Can someone tell me how to run another application from within a
Carbon
application like the Windows ShellExecute command?
I'm new to Carbon programming, and I can't find how to do this
It depends on what you mean by "application."
If you want to launch another windowed application, use LaunchServices.
http://developer.apple.com/documentation/Carbon/Conceptual/
LaunchServicesConcepts/LSCIntro/chapter_1_section_1.html
If you want to execute a task in its own process, use the standard
Unix exec or system commands.
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man3/exec.3.html
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man3/system.3.html
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.