Database Reference
In-Depth Information
Figure 19—Our recipe application
7.2
Our Application Design
For our revised desktop application, we're going to start at the very beginning.
We'll launch Xcode and proceed through the steps to create the application
and bring it to a usable state. At the end of this chapter, you may be surprised
that there are so few steps needed to create our Mac OS X application. This
ease and efficiency are part of the allure and strength of Cocoa development.
Coupled with Core Data, the efficiency is doubled. While we may be used to
fairly quick development on iOS, Mac OS X is still easier and quicker to build
for—at least up to the prototype stage. Once we have our prototype built and
have confirmed that we can do what we want with the application, then all
of the "little" things start to become obvious. This is often, lovingly, referred
to as “the second 80 percent.”
7.3
Sharing the Data Model
Since we have already developed our application for iOS, we want to leverage
as much of that knowledge as possible. With Core Data, that leveraging is
extensive. The
xcdatamodel
file structure is identical between Mac OS X and
iOS. This means we can use the same data model we have been using on iOS.
Further, since the data model can be shared and reused, we can share and
reuse the data objects as well.