Does NSUserDefaults Safely Handle Auto Termination?

Apple documentation says

NSUserDefaults temporarily disables sudden termination in order to prevent the process from being killed between the time at which the default value was set and the time at which the settings file including this default value was written to disk.

Does it also do this for automatic completion, or should I synchronizemanually when I suspect that automatic completion may occur (for example, when the application is hidden)?

+5
source share
1 answer

. , , ⌘Q (.. -[NSApp terminate:] , ), NSUserDefaults ⌘Q .

WWDC Apple 2011 ( , 34:00).

+1

All Articles