Yes, although in practice I’ve seen the preferences make it to disk fairly 
quickly after app termination.

Saagar Jha

> On Aug 15, 2023, at 13:36, Gabriel Zachmann <z...@cs.uni-bremen.de> wrote:
> 
> Ah, thanks a lot for the insights!
> 
> Could it happen that the new settings have not been written to disk even if 
> the app has quit normally?
> Or, in other words, there might be key/value pairs stored in cfprefsd's 
> internal/runtime storage, even if i have changed the app and those key/value 
> pairs do no loner correspond to any of the app's settings?
> 
> Best regards, Gabriel
> 
> 
> 
>> On 6. Aug 2023, at 12:57, Saagar Jha <saa...@saagarjha.com> wrote:
>> 
>> The plist file on disk is written to sporadically. cfprefsd is generally the 
>> arbiter what the real values are, and it may or may not write things to disk 
>> immediately. Conversely, it’s not necessarily sitting around watching the 
>> plist file for changes. The correct way to update user defaults in an ad-hoc 
>> fashion is to use the defaults command. 
>> 
> 

_______________________________________________

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