• 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
Binding and NSPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding and NSPopupButton


  • Subject: Binding and NSPopupButton
  • From: David Alter <email@hidden>
  • Date: Fri, 21 Jul 2006 15:49:30 -0700

I'm using binding on a NSPopupButton, and it works great. I have the binding connected to the selected value and using Shared User Defaults. The popup menu is used to set a preference. When my application is running I can lookup the key and I get the string of the selected item in that popup menu. Seeing how the interface will be getting localized at some point that string is not really what I want stored in the Shared User Defaults. It would be far more useful to have the tag of the menu item that was selected. Then once things get localized it will still work.

In IB shows binding for the tag but it is disabled. Or should I be using a Value Transformer? Does anyone have a nice clean way to do this?

thank for the help

-dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Binding and NSPopupButton
      • From: David Alter <email@hidden>
  • Prev by Date: Re: ODBC
  • Next by Date: Re: Binding and NSPopupButton
  • Previous by thread: Re: Keeping an NSDocument Open [SOLVED]
  • Next by thread: Re: Binding and NSPopupButton
  • Index(es):
    • Date
    • Thread