Opening persistent data store
Opening persistent data store
- Subject: Opening persistent data store
- From: John Velman <email@hidden>
- Date: Sat, 8 Nov 2008 19:49:15 -0800
This is not a "how to" question, it's an "is there a better way" question.
Needless to say, I'm new at this.
My app uses a sqlite3 database for it's document data. I'm NOT using core
data for a variety of reasons.
The app is document based and has multiple windows with multiple views into
the data for browsing, editing and adding. So far I'm doing just fine,
having learned a lot from this list, from Hillgass, and Anderson, and lots
of other sources.
Now, to open the database I use the File -> Open menu, connected to a
method findDatabase in the "first responder" of the NIB. This falls
through to MyDocument, which implements that method, following along more
or less with Hillgass, third edition, page 255 with
-beginSheetForDirectory and -openPanelDidEnd.
Works like a charm. But is this the "right" way to go, or is there a more
cocoa-ish way to do it using?
One thing that leads me to this question is that I can't seem to find
simple a way to hook up File->Open Recent. Documentation says of
-noteNewRecentDocumentURL:(NSURL *)aURL that "NSDocument automatically
calls this method when appropriate for NSDocument-based applications."
Is there a NSDocument method I should be overriding? It's probably
obvious, but there is sooo much to read...
Thanks,
John Velman
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden