开发者

Adding a relationship with a button

开发者 https://www.devze.com 2022-12-20 15:41 出处:网络
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 bindi

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

精彩评论

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

关注公众号