开发者

Passing CoreData content to a NSViewController

开发者 https://www.devze.com 2022-12-15 19:10 出处:网络
I\'ve started to move to using NSViewControllers and I can\'t for the life of me figure out how to get content from a CoreData entity to a TableView (for example) throu开发者_JAVA百科gh a NSViewContro

I've started to move to using NSViewControllers and I can't for the life of me figure out how to get content from a CoreData entity to a TableView (for example) throu开发者_JAVA百科gh a NSViewController?


The idea is to associate a controller with the entity you are trying to pull data out of, and then use bindings to pull the rows from that into your table view. There is a core data tutorial that explains everything quite well! Also, the apple references for core data and bindings are actually quite useful

0

精彩评论

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