• 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
Value Selection bindings oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Value Selection bindings oddity


  • Subject: Value Selection bindings oddity
  • From: Timothy Reaves <email@hidden>
  • Date: Sun, 4 Dec 2005 18:53:06 -0500

I have a NSComboBox with all three Value Selection bindings bound.
content - NSArrayController arangedObjects
contentValues - NSArrayController arangedObjects name
value - NSObjectController selection foo

The NSArrayController is for entities of type Foo, and name is the attribute I want displayed in the combo box. That works fine, and behaves as expected. When a user selects an object, the value is bound to the foo attribute of another entity.

I have a breakpoint set on the setFoo method. It is called as soon as a selection is made in the combo box, however, instead of an instance of Foo, the setFoo method is called with an instance of NFCString. So it appears that value is bindings the displayed value, not the object it represents.

Am I doing anything obviously incorrect here?
_______________________________________________
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: Value Selection bindings oddity
      • From: mmalcolm crawford <email@hidden>
    • Re: Value Selection bindings oddity
      • From: Timothy Reaves <email@hidden>
  • Prev by Date: Re: Search Array for Variable in Object
  • Next by Date: NIB tools
  • Previous by thread: Re: Search Array for Variable in Object
  • Next by thread: Re: Value Selection bindings oddity
  • Index(es):
    • Date
    • Thread