|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 5/25/2007 1:54 AM, "周章林" < email@hidden> wrote:
> I have put 2 executable file in one bundle, that is "a" and "b",
> and the key CFBundleExecutable's value is "a", so when I
> double click the bundle from Finder, the "a" is executed.If something
> happened, the "a" will fork and exec "b", the problem is "b" can't create
> any window use Carbon API, it said: RegisterProcess failed.
> But if I don't put them in the bundle,the "b" can create and show window
> as well.
So "b" is also a bundled Carbon application?
If so, you should Launch Services API to launch "b" from within the bundle
application "a" ('cos the Info.plist says so), instead of the (I am guessing
here) unix's fork and exec.
<http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesRef
erence/index.html>
pete
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >can I put 2 or more executable file in one bundle? (From: "周章林" <email@hidden>) | |
| >Re: can I put 2 or more executable file in one bundle? (From: Peter S Lau <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.