Instance Property

macCatalystApp

A Boolean value indicating whether the process is a Mac Catalyst app running in macOS.

Declaration

@property(readonly, getter=isMacCatalystApp) BOOL macCatalystApp;

Discussion

This property returns YES when the process is:

  • An iPad app built with Mac Catalyst

  • Running on a Mac device

Frameworks supporting iOS and macOS should use this property to determine if the process is a Mac Catalyst app running on a Mac device. Apps should not use this property. They should, instead, use #if TARGET_OS_MACCATALYST to conditionally compile source code intended to run in macOS only.

See Also

Accessing Process Information

arguments

Array of strings with the command-line arguments for the process.

environment

The variable names (keys) and their values in the environment from which the process was launched.

globallyUniqueString

Global unique identifier for the process.

processIdentifier

The identifier of the process (often called process ID).

processName

The name of the process.