Integrating with Quick Look
There are two different ways to implement Quick Look. The application can generate images as part of the data bundle, or a generator can be written that generates the images on the fly. Storing images with the data is viable only if the data is stored in a bundle similar to the way that Pages or Numbers does. When the data is stored in a flat file, like our metadata files, a generator is the only way to integrate with Quick Look. Fortunately, writing a Quick Look generator is only slightly more complicated than a Spotlight importer.
Just like the Spotlight importer, the Quick Look generator is created within its own subproject.
Like the Spotlight importer subproject we added earlier, we need to perform the following ...
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.