I'm on MacOS 12.1
i've tried:
ProcessInfo.processInfo.performActivity(options: [.idleDisplaySleepDisabled, .userInitiated], reason: "...")
IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep as CFString, UInt32(kIOPMAssertionLevelOn), "..." as CFString, &assertionID)
IOPMAssertionDeclareUserActivity("..." as CFString, kIOPMUserActiveLocal, &self.assertionID)
they all prevent display sleep fine however, neither of these prevent the screen saver ("Preferences>Desktop & Screen Saver") from starting
at a loss, have no idea other than to tell users to turn off the screen saver. if they have display sleep turned on they shouldn't be needing it ever anyways.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: