Search code examples
cocoamacosspotlight

Is it possible to have multiple document types for one NSPersistentStoreCoordinator?


I have 2 different entities in my core data model: project and issue. Each type has unique attributes, so I want to use different UTI document type for each entity. Each UTI document type should have an extension. Unfortunately, NSPersistentStoreCoordinator allows to set only one file extension.

So my question how to export more than one document type with the same extension.


Solution

  • Have you tried something like this in target->Get Info->Properties: enter image description here

    I haven't tested, but I assume something like this would work.