• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to simulate autosave in Core Data application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to simulate autosave in Core Data application?


  • Subject: Re: How to simulate autosave in Core Data application?
  • From: Patrick Calahan <email@hidden>
  • Date: Tue, 18 Apr 2006 10:49:40 -0700

Ok, sounds like I was missing something fundamental. :)

It just wasn't clear to me that I'm supposed to abandon NSPersistentDocument entirely for the single-document case.

I'll do that - thanks for your help.

-p



On Apr 18, 2006, at 10:34 AM, Jim Correia wrote:

On Apr 18, 2006, at 1:24 PM, Patrick Calahan wrote:

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 sounds like you should be starting with the Core Data Application, not Core Data Document-based Application template.


The template/example already handles save on quit for you. If you want to save more frequently than that you'll have to determine when (possibly by listening for change notifications from the managed object context) then ask the managed object context to save, handling errors as appropriate.

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40pcal.net


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
References: 
 >How to simulate autosave in Core Data application? (From: Patrick Calahan <email@hidden>)
 >Re: How to simulate autosave in Core Data application? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: How to simulate autosave in Core Data application?
  • Next by Date: Re: Interface Builder Date Localization
  • Previous by thread: Re: How to simulate autosave in Core Data application?
  • Next by thread: Slightly OT: Jam tool and Intel building
  • Index(es):
    • Date
    • Thread