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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access