Mailing Lists: Apple Mailing Lists

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

Make CFBundleIconFile apply to all executables inside a Bundle on Tiger?



Hi,

I'm creating a app that has the executable in Contents/MacOS/ named Foo. Inside the Info.plist file I have it set up to make Foo the bundle executable and I have assigned an icon to it that is resided inside the Contents/Resources directory. The part of the Info.plist looks like this:

<key>CFBundleExecutable</key>
<string>Foo</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
Launching Foo works fine and I see the icon in my dock. Everything is happy.

Now, I want to launch Foo with a few command line flags, and I decide to create a second executable in Contents/MacOS/ called FooLauncher. FooLauncher is basically a simple shell script that launches Foo. So I modify the Info.plist to have it launch FooLauncher instead of Foo:

<key>CFBundleExecutable</key>
<string>FooLauncher</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
When I launch this on Leopard, Foo gets launched successfully and it has the icon that I want in my dock.

However, when I launch this on Tiger, Foo gets launched successfully, but the icon was defaulted to an ugly default console looking icon instead of the Icon that I chose for it to launch.

Is there a way I can get Icon.icns to apply to both Foo and FooLauncher on Tiger?  Alternatively, can you have two Info.plist files inside a bundle that describes the properties of two different executables inside Contents/MacOS?

Thanks in advance.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-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.