• 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
NSPopUpButton and Bindings - using code and description
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton and Bindings - using code and description


  • Subject: NSPopUpButton and Bindings - using code and description
  • From: Alan Dail <email@hidden>
  • Date: Fri, 29 Jul 2005 16:37:44 -0400

I have a NSPopUpButton for selecting a state. I have a table that has stateCode and stateName that I want to use to build the popupList and have an object that contains/drives the selected state code. What I'd like to do is somehow store the stateCode but display the associated stateName.

Using bindings, I have selectedValue bound to myObject.stateCode, have content bound to stateList. I can then bind contentValue to stateList.stateCode and my popup works, but displays the code. Is there a way through bindings to have the display tied to one key, but the stored value tied to a different key of the same object?

Alan
_______________________________________________
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


  • Prev by Date: Re: Scrolling NSTextViews
  • Next by Date: Re: Crash when calling custom methods in custom subclass.
  • Previous by thread: Re: Scrolling NSTextViews
  • Next by thread: Application Icon Missing in Dock
  • Index(es):
    • Date
    • Thread