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

Re: Binding and NSPopupButton


  • Subject: Re: Binding and NSPopupButton
  • From: David Alter <email@hidden>
  • Date: Fri, 21 Jul 2006 16:41:46 -0700

Resolved the issue by using my identifier in the title, and my code in the attribute title

enjoy
-dave

On Jul 21, 2006, at 3:49 PM, David Alter wrote:

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:
40alterconsulting.net


This email sent to email@hidden



_______________________________________________
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


References: 
 >Binding and NSPopupButton (From: David Alter <email@hidden>)

  • Prev by Date: Binding and NSPopupButton
  • Next by Date: Crash in [NSApplication sendAction:to:from:]
  • Previous by thread: Binding and NSPopupButton
  • Next by thread: Crash in [NSApplication sendAction:to:from:]
  • Index(es):
    • Date
    • Thread