Mailing Lists: Apple Mailing Lists

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

setting app name for Application Menu items



Hi all,

I have a cross-platform (OS X, Linux) application, written in C, which invokes a JVM which uses Swing. Aside from launching the VM, the native side goes off and does other things, but has no graphical presence. As per TN2147 and simpleJavaLauncher, the JVM is launched from a secondary thread. When the app launches, the application menu's name (and the name in the Dock) is the name of the executable; however, the "About", "Hide", and "Quit" menu items all say "(null)" instead of the executable's name.

So, what is the least-invasive way to set whatever string those menu items need? By "least-invasive" I mean that as this is supposed to be cross-platform, I'd like to have as little OS X-specific code as possible. The Linux guys are already ribbing me that I have to #include CoreFoundation and create and run a CFRunLoop (and have that second thread) just to get the GUI to show up.

Thanks,

Jamison Hope
email@hidden


_______________________________________________ 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.