Exercises
1. In Chapter 6, “Making Decisions,” Program 6.10A generated a table of prime numbers. Modify that program to store the numbers inside an NSMutableArray object. Then write the resulting array as an XML property list to the file primes.pl. Examine the contents of the file.
2. Write a program to read in the XML property list created in Exercise 1 and store the values in an array object. Display all the elements of the array to verify that the restore operation was successful.
3. Modify Program 19.2 to display the contents of one of the XML property lists (.plist files) stored in the /Library/Preferences folder.
4. Write a program to read in an archived AddressBook and look up an entry based on a name supplied on the command line, like ...
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