Re: Confusion with app settings / NSUserDefaults

2023-08-06 Thread Marco S Hyman via Cocoa-dev
Use the commend “defaults delete de.zach.ArtSaverApp” to delete all your prefs. That should remove them everywhere. At least that is what as worked for my in my limited experience. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Confusion with app settings / NSUserDefaults

2023-08-06 Thread Saagar Jha via Cocoa-dev
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

Confusion with app settings / NSUserDefaults

2023-08-06 Thread Gabriel Zachmann via Cocoa-dev
I am pretty confused with the NSUserDefaults system. My app stores different settings for different monitors in the [NSUserDefaults standardUserDefaults]. To do so, I generate defaults_ = [NSUserDefaults standardUserDefaults]; Then, I create a dictionary containing the default settings and