• 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: Core Data bindings: add entity to relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data bindings: add entity to relationship


  • Subject: Re: Core Data bindings: add entity to relationship
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 9 Aug 2010 10:05:46 -0700

On Aug 9, 2010, at 08:52, James Maxwell wrote:

> I have a window with two tables: one showing the available instruments, and one for adding articulations to the selected instrument. The selection in the first table is bound to the [MnS_Instrument_Controller arrangedObjects].name, so that clicking a name selects a particular MnS_Instrument. The second table uses combo boxes for choosing which articulation to add; "+" and "-" buttons below the table are bound to the add: and remove: methods of AssignedArticulation_Controller. The available articulations, listed as choices in the combo boxes, are supplied by Articulation_controller, and they show up as expected. The value of the table selection is bound to [AssignedArticulation_Controller selection].articulation.name, the idea being that the AssignedArticulation will grab a named articulation from the set of stored Articulations, and assign it to the instrument. But when I release the combo box, it reverts back to "No Value" and won't make the assignment.
>
> Any ideas?

Yup. (I need to make this response a macro, I think.)

A combo box is a kind of text field, not a kind of menu, so it's the wrong control to use in the circumstances described above. What you're doing by making a "choice" from the combo box is trying to change the Articulation.name string property, *not* the AssignedArticulation.articulation relationship.

Use a menu or a NSPopUpButton in your interface, instead of NSComboBox.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Core Data bindings: add entity to relationship
      • From: James Maxwell <email@hidden>
References: 
 >Core Data bindings: add entity to relationship (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: NSTextView redraw while resigning first responder (sequel)
  • Next by Date: PropertyLocks?: strange exc_bad_access crash
  • Previous by thread: Core Data bindings: add entity to relationship
  • Next by thread: Re: Core Data bindings: add entity to relationship
  • Index(es):
    • Date
    • Thread