Cocoa Bindings and Core Data

The combination of KVO/KVC (collectively referred to as Cocoa Bindings) and Core Data reduces the amount of code that we’re required to write by a considerable amount. In the previous chapter, we wrote almost no code to create and display our recipe objects. Nearly all the work that we did was in Interface Builder. In this section, we discuss each of the interface objects that we used and how they work with Core Data.

How does this apply to our application? Let‘s review the user interface that we built in Chapter 9, Adding a Desktop Foundation and how we used KVO and KVC.

NSTableView

Our recipe application makes heavy use of the NSTableView. In the main window of our application, we have two table views: one to ...

Get Core Data in Objective-C, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.