Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Storing the Data
You’re going to create an app in this chapter similar to my DiabeticPad app that allows users to enter data into a software version of a diabetic’s logbook. Your app will provide an interface for users to enter their data and store it first in memory while the app is running and save it into a file of their choosing on their Mac. When your app is launched again, it will read data from their file into memory so it’s ready for your users to add more log entries and review and edit what they’ve entered previously. Your first task is to create an app to support the data entry, storage, and retrieval goals:
1. Launch Xcode and click the Create a new Xcode project button on the opening screen.
2. Select Application from the Mac OS X pane and Cocoa Application as the project template and click the Next button.