Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: can I put 2 or more executable file in one bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can I put 2 or more executable file in one bundle?



"b" is not a application,since it needn't the menubar the the dock icon.
It just want to show a window with some controls to tell the user that
something happened about "a".
and the "b" main function like this:
int main(...)
{
     while(1)
     {
             //wait something happened on "a"
             // and I don't want a menubar and a dock icon about "b" are shown at this time
             break;
     }
     createnewwindow(); 
     .............

    return 0;

}
I have tried the CFUserNotification, but its controls are not enough.
I want some control like memo( can input multi-line text),but it only has
edit text. and I can't modify the control attribute,like I want to control
the font family the font size,etc.



2007/5/25, Peter S Lau < email@hidden>:
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>)



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.