Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon Run Command



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
References: 
 >Carbon Run Command (From: "Paul McEwan" <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.