AppKit API to check whether Stage Manager is turned on for conditional behaviour?

Hello! Since the Stage Manager now occupies a set of interactions left of the screen to display a new dock, we'd like to conditionally turn off features or provide a feature workaround to not conflict with this set of interactions.

Is there any way to check in AppKit, whether Stage Manager is currently turned on in the system to accomplish this?

Any help would be greatly appreciated!

Replies

Hello If your app isn't sandboxed you could try a trick that worked for me

NSUserDefaults *defs = [NSUserDefaults new];
NSDictionary *d = [defs persistentDomainForName:@"com.apple.WindowManager.plist"];
BOOL stageManagerActive = [[d objectForKey:@"GloballyEnabled"] boolValue];