• 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: Document style programming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document style programming


  • Subject: Re: Document style programming
  • From: Mike Abdullah <email@hidden>
  • Date: Sat, 18 Oct 2014 18:23:33 +0100

> On 18 Oct 2014, at 17:33, Luther Baker <email@hidden> wrote:
>
> As an aside, I'm sure it is well-known, there is some funny caching going on.
>
> If I open the app the first time (and pre-populate the context with data) - I cannot actually "SAVE".
>
> If I formally shut the app down by quitting the app and choosing "Don't Save", then subsequent restarts exhibit the same behavior.
>
> BUT, if I simply rerun the app from Xcode (with the app still running) -- then subsequent SAVES on the context actually work --- or at least they don't complain about not having an attached datastore.
>
> In fact, the block of code that creates the temp data is based on the existence of data in the database and it doesn't run on subsequent Xcode restarts ... which implies that when restarting the app from Xcode, the environment tries to "remember" data I've created (and not yet saved). Something was cached in the restart and now there is a persistent store of some sort, albeit still nothing that I explicitly saved anywhere. Sort of trippy unless you expect or understand why.

To re-iterate: do NOT save the context yourself. That is the document’s job.
_______________________________________________

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


References: 
 >Document style programming (From: Luther Baker <email@hidden>)
 >Re: Document style programming (From: Mike Abdullah <email@hidden>)
 >Re: Document style programming (From: Luther Baker <email@hidden>)
 >Re: Document style programming (From: Mike Abdullah <email@hidden>)
 >Re: Document style programming (From: Luther Baker <email@hidden>)

  • Prev by Date: Re: Passing a swift function to objective-c
  • Next by Date: Re: Passing a swift function to objective-c
  • Previous by thread: Re: Document style programming
  • Next by thread: Saving a Document style app
  • Index(es):
    • Date
    • Thread