Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between "bundle display name" and "bundle name" in cocoa application's info plist

Here is a good question:

Bundle Name, Executable Name, Product Name...anything else?

but I just wonder about the difference between "bundle display name" and "bundle name" in cocoa application's info plist.

like image 764
xhan Avatar asked Oct 08 '22 03:10

xhan


People also ask

What is bundle name in Info plist?

CFBundleName (String - iOS, Mac OS X) identifies the short name of the bundle. This name should be less than 16 characters long and be suitable for displaying in the menu bar and the application's Info window. You can include this key in the InfoPlist.

What is bundle name in Xcode?

Bundle name - is folder name, where your app (including executable file and all resources) will be stored (Cool Program.


1 Answers

I don't think any of the other answers concisely answers the question.

  • CFBundleDisplayName - displayed: below icon. According to docs, should be localized, but only if the app itself is localized, otherwise there will be some kind of penalty (if this is true in reality I cannot say)

  • CFBundleName - displayed: I have no idea. Docs suggest that it will be used in lists thus recommended max 16 characters, but for instance the Settings→General→Usage list of apps uses CFBundleDisplayName really. To date I have never figured out where exactly this one is used.

Oh, this is for iOS apps, can't speak for other OSes.

like image 180
Jonny Avatar answered Oct 28 '22 23:10

Jonny