- Working with Uniform Type Identifiers
- Accessing the System Pasteboard
- Recipe: Passively Updating the Pasteboard
- Recipe: Enabling Document File Sharing
- Recipe: Monitoring the Documents Folder
- The Document Interaction Controller
- Recipe: Checking for the Open Menu
- Declaring Document Support
- Recipe: Implementing Document Support
- Exported Type Declarations
- Creating URL-Based Services
- Recipe: Adding Custom Settings Bundles-Or Not
Exported Type Declarations
You can declare custom UTIs by providing an exported type declaration in your Info.plist property list. These type specifications mirror the ones in Figure 16-7, which is used for declaring document type support. Figure 16-7 shows a type declaration for JPEG images.
Again, you see each of the keys that can be retrieved via the UTTypeCopyDeclaration()function. Here, those items are specified to the system as a preliminary declaration. You can easily adapt this template to create your own custom file types and associated UTIs as needed. The most common reason for declaring a new type is to introduce support for file formats supported on other platforms.
Figure 16-7. Declaring the JPEG UTI.