Passing CoreData content to a NSViewController
-
19-09-2019 - |
Question
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) through a NSViewController?
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow