I'm building a Core Data application, and I want a button to add the selected object (Player) to a relationship (Team) corresponding with that button. 开发者_开发问答Add, fetch, insert? Is this a bindings issue, with Argument and Target?
Thanks a ton in advance for your help, -Dan
Have an array controller bound to the relationship, and hook up the button to the array controller's add:
action. You don't need Bindings for the latter step; that Binding is for setting a button's target dynamically, which is not what you need here.
精彩评论