Mailing Lists: Apple Mailing Lists

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

Re: Bundle name ignored



On Jun 3, 2005, at 2:52 PM, Niels Meersschaert wrote:

According to the docs, the plist value CFBundleDisplayName is a string that reflects the actual name of the widget, to be displayed in the widget bar and the Finder.
However, the widget's file name is shown in the widget bar & the finder, not the display name. Only if your widget's file name & the BundleDisplayName match will it eliminate the .wdgt from the Finder. Anyone have any idea why the documentation discrepancy exists?

So there's some nuance on how this works. In a nutshell, it's required for localizing your widget's name, in both the Finder and widget bar.


First, the CFBundleDisplayName in the Info.plist needs to match the on disk widget bundle name, minus the ".wdgt" file extension.

Secondly, inside of your language projects, you supply a file named "InfoPlist.strings." it contains the line:
"CFBundleDisplayName" = "Localized Widget Name";


Thirdly, based on the user's prefs, as set in the International pref pane, the appropriate localized name is shown in Finder and the widget bar.

If one of the above conditions fail, CFBundleDisplay name is ignored and the fallback, using the widget bundle's on disk name (minus .wdgt), is used. Just including an InfoPlist.strings at the root level of your widget won't invoke this behavior—it needs to be in a language project directory (.lproj).

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >Bundle name ignored (From: Niels Meersschaert <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.