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
dim Activity as NSProcessInfoActivityMBS // property in your window, control, thread, app
dim AllowAppNap as boolean // allow or not?

dim 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 sub classes.

Some methods using this class:

Some examples using this class:


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


NSPrintPanelMBS   -   NSProcessInfoMBS


The biggest plugin in space...