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: popup menu entries




On 07/11/2009, at 7:19 AM, Carlo Caione wrote:

in an application I need to populate a popup button with at least twenty entries.
What is the correct place where I have to store labels?
Can a property list be a good idea or is it better to leave them in the .m file?


The obvious answer is to populate the menu in Interface Builder. Why can't you do that?

If the menu is dynamically populated then the title strings should be set up using NSLocalizedString or one of its cousins, so that the strings originally come from the .m file but are localizable via a suitable strings file.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >popup menu entries (From: Carlo Caione <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.