> On Apr 3, 2021, at 5:40 AM, Gabriel Zachmann via Cocoa-dev
> <[email protected]> wrote:
>
> 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"]
How about something like this?
NSUserDefaults *monitor1 = [[NSUserDefaults alloc] init];
[monitor1 setBool:YES forKey:@"MyKey”];
BOOL value = [monitor1 boolForKey:@"MyKey"];
--Richard Charles
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]