Thanks a lot for your response!

> User Defaults are now stored in an opaque in memory DB, and while the various 
> files may still play a role, you can't make any assumptions about them 
> anymore.

Yes, I understand that.

> 
> That being said, [NSUserDefaults.standardUserDefaults boolForKey:@"some key"] 
> etc should all work as expected.

Yes, they do.

But what I would like to have is a mechanism that lets me manage different user 
defaults when the app is running on different monitors.
Something like

  [ [NSUserDefaults userDefaultsWithName:@"monitor-name"] boolForKey:@"some 
key"]

Best regards, Gabriel

PS:
I used to be able to do something like that with a clutch using 
ScreenSaverDefaults, but it seems like this has stopped working; I believe it 
must have been one of the recent Catalina upgrades.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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