I. Saving and Sharing Data: Concepts, Terminology, and Options
1. Using Documents
People are used to word processing and spreadsheet documents, but these formats have not always been easy to implement with iOS and macOS. The key feature of documents is that they are visible to users on their device; once visible, users can share those documents, save them, name and rename them, and store them in folders.
By contrast, other types of data storage such as databases and macOS or iOS formats such as property lists let users store and use data in formats that are not visible to the user.
The terms "file" and "document" are often used interchangeably, but they are not the same. This chapter provides the basic definitions and distinctions that are used throughout this book and the Apple (and other) software.
2. Looking Inside Documents
Documents have a format that organizes the data contained in the document such as:
- Standard File Formats (graphics and text) These document formats are can be shared with other apps on other devices so that you can read and write documents created or edited on Microsoft Word, Numbers, or other apps.
- Custom document formats. You can create formats that your apps can read and write; other apps may not be able to read and write them.
- Working with Composite Documents (file managers). Documents can consist of several file formats such text (perhaps a .doc or .docx file) as well as graphics (.jpeg or .png).
3. Matching a Document to a Document Format
The key to using documents on any devices is matching the document format to the physical document description. Originally, this was done simply with file extensions such as .txt or .GIF but as computers and formats have become more complex, those tools are not sufficient. This chapter provides the key technologies used to match documents and formats on iOS and macOS:
- Document identifiers
- Document types
- Document protocol conformance (mixing and matching formats)
II. Implementing Documents on iOS and macOS
4. Securing and Protecting Data
As soon as you start thinking about saving data, you should be thinking about the security of that data. Every step of the process from deciding what data to store and what rules to implement for safeguarding that data needs to be considered. This chapter focuses on those issues.
- Security and Privacy (access control)
- Security and Protection (managing changes to data)
- Encryption of Data
- Data at rest
- Data in action
Using Versions to manage Formats
- Data formats and versions
- File formats and versions
- Implementing conversions
5. Implementing Documents on macOS: NSDocument and NSDocumentController
Chapters 5 and 6 have the same outline but the content is different from iOS and macOS
There are two main implementation issues on macOS:
- Browsing files -  
About the Author: Jesse Feiler is a developer, consultant, and author specializing in database technologies and location-based apps. Jesse's apps include NP Risk, Minutes Machine, Utility Smart, Cyber Continuity, and Saranac River Trail. He has worked for organizations as varied as Federal Reserve Bank of New York (Chief, Special Projects Staff in Systems Development), Albers and Archipenko foundations (data management), and a number of database projects typically using FileMaker. His apps are available in the App Store and are published by Champlain Arts Corp (champlainarts.com). Jesse is heard regularly on WAMC Public Radio for the Northeast's The Roundtable. founder of Friends of Saranac River Trail, Inc. A native of Washington DC, he has lived in New York City and currently lives in Plattsburgh NY.