Skip to content

How to save/open a core data file in the "package" file #2

@duncangroenewald

Description

@duncangroenewald

Is it possible to create/open a core data file from this Package ?

In the init() function could one create an NSPersistentContainer in the main directory and then have the MOC as a variable on the FileDocument ?

Similarly in the fileWrapper() function could one just call the MOC.save() method.

I am guess this seems to easy - unless perhaps one creates an in memory database in init() and then writes that to file in fileWrapper()

Any thoughts on whether this might be feasible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions