Wrapping Up

With UTIs, it’s possible to integrate even further with the operating system, Spotlight, and Quick Look. It’s possible to publish a full description of the UTI—effectively injecting it into the tree and thus having the data type appear in Spotlight rules and more. However, this is beyond the scope of this book.

Here are some exercises you can try on your own.

Decreasing the Size of the Metadata Files

Depending on the application, it’s possible to reduce the metadata files dramatically. Since the importer (and the generator) can stand up the entire Core Data stack, it’s possible to just have the NSManagedObjectID (or even a unique identifier within the Recipe object) stored in the metadata file and have the importers and generators ...

Get Core Data in Swift 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.