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

Re: NSComboBox and bindings


  • Subject: Re: NSComboBox and bindings
  • From: Ivan Myrvold <email@hidden>
  • Date: Sun, 30 May 2004 22:28:13 +0200

I think I have exhausted all the options, and have come to the conclusion that this doesn't work. Please prove me wrong, I would love to have this working:

I want to bind to NSComboBox in such a way, that the item titles showing in the drop down list is like this: 1-some text, 2-another text, 3-yet another text....
But when I actually select one item in the list, the NSNumber for that item is stored in an instance variable, and not the title showed. (I f I select the item "2-another text" the NSNumber for 2 is to be stored).

Can this be done? I always gets the item title stored, and I had the impression from Apple's documentation that this should be possible. But there is no example of NSComboBox bindings what I could find on this list, nor on the internet.


Ivan C Myrvold
OrtopediService AS
Mob. 913 16 356
Tlf. 38 14 45 93
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSComboBox and bindings (From: Ivan Myrvold <email@hidden>)
 >Re: NSComboBox and bindings (From: Fritz Anderson <email@hidden>)
 >Re: NSComboBox and bindings (From: Ivan Myrvold <email@hidden>)
 >Re: NSComboBox and bindings (From: Joakim Danielson <email@hidden>)

  • Prev by Date: Animated NSImageView
  • Next by Date: Child object retention with NSOutlineView
  • Previous by thread: Re: NSComboBox and bindings
  • Next by thread: C++ structs in .mm file
  • Index(es):
    • Date
    • Thread