On May 5, 2016, at 16:38 , Graham Cox <graham....@bigpond.com> wrote:
> 
> If it’s NOT legal to write a prefs value at quit time, how is one supposed to 
> record persistent state that is only final by that time?

Are you using an observer for NSApplicationWillTerminateNotification 
explicitly, or the applicationWillTerminate delegate method? If yes to either 
(I assume they’re functionally equivalent), then you should probably use the 
applicationShouldTerminate delegate method instead, returning NSTerminateNow 
after saving the user defaults value unless you actually want to delay 
termination.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to