Please add a modern replacement for NSPersistentDocument to AppKit
| Originator: | armadsen | ||
| Number: | rdar://20842993 | Date Originated: | 06-May-2015 02:49 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 10.10.3 |
| Classification: | Enhancement | Reproducible: | Always |
Summary: NSPersistentDocument is not well-suited to modern, document based Core Data applications. UIManagedDocument on iOS is much better. A modern replacement, or major enhancements to NSPersistentDocument to support the following would be much appreciated: - Easily support file wrappers / document packages where the core data store is just a file inside the package. - Add built in support for multiple Core Data contexts, background saving (good for autosave), etc. BSManagedDocument (https://github.com/karelia/BSManagedDocument) is a good example of a third party library that tries to accomplish this. However, real support for this kind of thing from Apple would be superior. Steps to Reproduce: Try to create a document-based OS X app using a package format for documents, supporting autosave/versions, multiple Core Data contexts, etc. using NSPersistentDocument. Expected Results: It’s easy, and the framework helps you. Actual Results: It’s nearly impossible, and you end up resorting to subclassing NSDocument and rolling your own solution, which is quite painful.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!