Gabriel,

> On Apr 3, 2021, at 07:41, Gabriel Zachmann via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> 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"]

I thought -addSuiteNamed: would allow you to maintain/add a suite of defaults 
for each monitor. 

Best regards, Sandor

> 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.
> 
> 
> _______________________________________________
> 
> 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/admin.szatmari.net%40gmail.com
> 
> This email sent to admin.szatmari....@gmail.com
_______________________________________________

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