I’m implementing an application for Mac OS X to easily access to SQLite databases. Since the user will be able to work on more files at the same time, I opted for a document based application.
Most books and tutorials explain how to create and read data in such a context from a file using NSData. My app, instead, should rely on the SQLite library for that purpose.
What are the methods I should override in order to do this?
Only
-[NSDocument readFromURL:ofType:error:]. I suppose every change is saved automatically (SQLite), so you don’t need a save action.I have also done this and I liked it pretty much.
For example: