Platforms to show: All Mac Windows Linux Cross-Platform

NSProcessInfoActivityMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Process MBS MacBase Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The class for an activity.
Example
Var Activity as NSProcessInfoActivityMBS // property in your window, control, thread, app
Var AllowAppNap as boolean // allow or not?

Var ProcessInfo as NSProcessInfoMBS = NSProcessInfoMBS.processInfo
if AllowAppNap then
Activity = nil
else
// disable sleep to let us make something...
Activity = ProcessInfo.beginActivity(NSProcessInfoMBS.NSActivityBackground, "Backup running")
end if

For Windows, please check WindowsThreadExecutionStateMBS to prevent system sleep.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no subclasses.

Some methods using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS MacBase Plugin.


NSPrintPanelMBS   -   NSProcessInfoMBS


The biggest plugin in space...