• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: popup menu entries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: popup menu entries


  • Subject: Re: popup menu entries
  • From: Graham Cox <email@hidden>
  • Date: Sat, 7 Nov 2009 15:41:08 +1100


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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: popup menu entries
      • From: Carlo Caione <email@hidden>
References: 
 >popup menu entries (From: Carlo Caione <email@hidden>)

  • Prev by Date: Re: I need an example of getting the iPhone's current IP address using CFHost
  • Next by Date: [moderator] Re: PolKit for Leopard and later
  • Previous by thread: popup menu entries
  • Next by thread: Re: popup menu entries
  • Index(es):
    • Date
    • Thread