开发者

Adding a relationship with a button

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜