Recipe: Declaring Document Support

Application documents are not limited to files an application creates or downloads from the Internet. As you discovered in Recipe 11-6, applications may handle certain file types. They may open items passed from other apps. You’ve already seen document sharing from the sending point of view, using the “open in” controller to export files to other applications. Now it’s time to look at it from the receiver’s end.

Applications declare their support for certain file types in their Info.plist property list. The Launch Services system reads this data and creates the file-to-app associations that the document interaction controller uses.

Although you can edit the property list directly, Xcode offers a simple form ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.