Re: How to simulate autosave in Core Data application?
Re: How to simulate autosave in Core Data application?
- Subject: Re: How to simulate autosave in Core Data application?
- From: "I. Savant" <email@hidden>
- Date: Tue, 18 Apr 2006 13:32:02 -0400
Why use the document-based template? Why not just use the "Core
Data Application" template?
--
I.S.
On Apr 18, 2006, at 1:24 PM, Patrick Calahan wrote:
Apologies in advance if this is a FAQ or if I'm missing something
fundamental. I'm a Cocoa newbie and struggling to figure out how
to achieve auto-save-like behavior with a Core Data app that I'm
writing.
My goal: Create a single-document application in the same vein as
iCal or Address Book - I don't want to expose the 'document'
concept to the user. I want to use Core Data to persist the
document in /Library/Application Support.
I understand autosave is not "directly supported" by
NSPersistentDocument; how is it indirectly supported? I basically
need to write code to the document/store to open or save in
response to certain events (application start, large changes,
application exit). I don't want to bother the user with open and
save dialogs.
It's not clear to me whether I'm supposed to call the document or
the managed object context directly - I've seen a variety of odd
and surprising behaviors (to me, at least) with either approach.
I'd like to know what is the proper way to handle this sort of thing.
If anyone has any general tips or a pointer to documentation on
what to do here, I'd be much obliged.
Thanks,
-p
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden