O'Reilly logo

Objective-C Programming: The Big Nerd Ranch Guide by Mikey Ward, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving and loading data

Currently, if the user force-quits iTahDoodle, or if the system terminates the application while the user is doing something else, then any changes to the task list are lost and the user will have to enter them all over again when they restart the application. This is not the user experience you want. When users quit the app, they would like their to-do lists to stick around so that they can refer them again later. In this section, you will enable iTahDoodle to save a user’s tasks between runs of the application.

Adding a C helper function

To save the user’s tasks between runs, iTahDoodle will store the tasks to disk as a property list – an XML file. You will need a way to get this file’s location while ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required