Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

NSProcessInfoActivityMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Process MBS MacCocoa Plugin 13.5 Yes No No Yes, macOS only No
Function: The class for an activity.
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
// disable sleep to let us make something...
Activity = ProcessInfo.beginActivity(NSProcessInfoMBS.NSActivityBackground, "Backup running")
end if
Notes: This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some examples which use this class:

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

NSPrintPanelMBS   -   NSProcessInfoMBS

MBS Xojo blog