Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSProcessInfoMBS class.
NSProcessInfoMBS.activeProcessorCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.5 and later.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.argumentsCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
Some examples using this property:
NSProcessInfoMBS.automaticTerminationSupportEnabled as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Without calling this or setting the equivalent Info.plist key (NSSupportsAutomaticTermination), the above methods (disableAutomaticTermination/enableAutomaticTermination) have no effect, although the counter tracking automatic termination opt-outs is still kept up to date to ensure correctness if this is called later. Currently, passing false has no effect.
This should be called during applicationDidFinishLaunching or earlier.
(Read and Write property)
NSProcessInfoMBS.environment as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.globallyUniqueString as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns the Global ID for the process. The ID includes the host name, process ID, and a time stamp, which ensures that the ID is unique for the network.
This method generates a new string each time it is invoked, so it also uses a counter to guarantee that strings created from the same process are unique.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write property)
NSProcessInfoMBS.hostName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.isiOSAppOnMac as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value of this property is true only when the process is an iOS app running on a Mac. The value of the property is false for all other apps on the Mac, including Mac apps built using Mac Catalyst. The property is also false for processes running on platforms other than macOS.
(Read only property)
NSProcessInfoMBS.isLowPowerModeEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 21.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
On systems where the low power mode is unknown or unsupported, the value returned from the lowPowerModeEnabled property is always false.
Returns true if low power mode is enabled for macOS 12 or iOS 9 and newer.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.operatingSystem as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Operating system identifier. See "Constants" for a list of possible values. In Mac OS X, it's NSMACHOperatingSystem.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.operatingSystemName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Operating system name. In Mac OS X, it's "NSMACHOperatingSystem"
(Read only property)
Some examples using this property:
NSProcessInfoMBS.operatingSystemVersionString as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns the Operating system version. This string is human readable, localized, and is appropriate for displaying to the user. This string is not appropriate for parsing.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.operationSystemVersionMajor as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.operationSystemVersionMinor as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.operationSystemVersionPatch as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.physicalMemory as UInt64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.5 and later.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.processIdentifier as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
NSProcessInfoMBS.processName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The process name is used to register application defaults and is used in error messages. It does not uniquely identify the process.
You can assign a new value, but:
User defaults and other aspects of the environment might depend on the process name, so be very careful if you change it. Setting the process name in this manner is not thread safe.
(Read and Write property)
Some examples using this property:
NSProcessInfoMBS.processorCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.5 and later.
(Read only property)
NSProcessInfoMBS.systemUptime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns an NSTimeInterval indicating how long system the computer has been restarted.
Available in Mac OS X v10.6 and later.
(Read only property)
Some examples using this property:
NSProcessInfoMBS.thermalState as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Process | MBS MacBase Plugin | 15.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
On systems where thermal state is unknown or unsupported, the value returned from the thermalState property is always NSProcessInfoThermalStateNominal.
Available in Mac OS X 10.10.3 and newer.
Returns -1 if function is called on older Mac OS X versions, Linux or Windows.
(Read only property)
Some examples using this property:
The items on this page are in the following plugins: MBS MacBase Plugin.
