• 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
Sudden termination and WebKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sudden termination and WebKit


  • Subject: Sudden termination and WebKit
  • From: Daryle Walker <email@hidden>
  • Date: Fri, 12 Sep 2014 03:16:40 -0400

I heard that the User Defaults API does caching since 10.9 Mavericks. If so, it is safe to use when adding Sudden Termination to your app?

I figure that Sudden Termination should be suspended when running save-file code, to avoid corruption. Should it also be done for load-file code? What about when a local file URL is loaded into a WebKit instance?

I figure you should suspend Sudden Termination when user-important state becomes dirty, right? I load left-over web-history at app launch and save it at app terminate. Notifications at both points turn off a dirty flag. Notifications on web-history adding, removing, or completely clearing turn on that same dirty flag. Does this mean I need a timer or something to occasionally save the web-history during the program?

If I add (window/app) Resume state and/or Automatic Termination, would I need to add more Sudden Termination suspensions too?

—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________

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


  • Follow-Ups:
    • Re: Sudden termination and WebKit
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Cleaning up after manual Core Data migration
  • Next by Date: Apple event for "open contents": re-entry and multiple qualifying services
  • Previous by thread: Re: Cleaning up after manual Core Data migration
  • Next by thread: Re: Sudden termination and WebKit
  • Index(es):
    • Date
    • Thread