Core Data and NSOperation

后端 未结 4 908
情话喂你
情话喂你 2021-02-04 19:49

I\'m currently working with an NSPersistentDocument subclass that uses NSOperation to import data in the background. As per the documentation, I\'m obs

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 20:20

    I'm not 100% familiar with the Mac stuff, but I'm sure you could you use an in-memory persistent store before the user has saved, and then add the sql/plist store after that action.

    Potentially even better could be to create a on-disk persistent store in a standard temporary directory, and move it across when the user clicks to save.

提交回复
热议问题