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

Re: Value Selection bindings oddity


  • Subject: Re: Value Selection bindings oddity
  • From: Timothy Reaves <email@hidden>
  • Date: Sun, 4 Dec 2005 19:19:11 -0500


On Dec 4, 2005, at 6:53 PM, Timothy Reaves wrote:

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


When I change from NSComboBox to NSPopUpButton this issue does not exist. _______________________________________________
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: 
 >Value Selection bindings oddity (From: Timothy Reaves <email@hidden>)

  • Prev by Date: NIB tools
  • Next by Date: Re: CoreVideo -> CoreImage -> CoreVideo
  • Previous by thread: Value Selection bindings oddity
  • Next by thread: Re: Value Selection bindings oddity
  • Index(es):
    • Date
    • Thread