0

I like NSDocument because, when used in conjunction with a Core Data model, gives me an application with persistent data for free. But I know that, for my particular project, I will only ever deal with one "document." I don't need the multiple document support that comes with the document architecture stack. Does it make sense for me to still use NSDocument, but break multiple document support where ever I find it? Or is there a better way to get the persistent magic I'm looking for?

1 Answer 1

2

If you aren't creating a document-based application, there is a default project template in Xcode that gives you core data without the document stack. It will automatically create an app delegate for you that implements the core data persistence layer.

1
  • 1
    This seems so obvious now! Thanks for the answer. Mar 26, 2013 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.