Application
public final class Application
extension Application: Equatable
extension Application: CustomStringConvertible
A running application.
-
Undocumented
Declaration
Swift
public var processIdentifier: pid_t { get }
-
Undocumented
Declaration
Swift
public var bundleIdentifier: String? { get }
-
The global Swindler state.
Declaration
Swift
public var swindlerState: State { get }
-
The known windows of the application. Windows on spaces that we haven’t seen yet aren’t included.
Declaration
Swift
public var knownWindows: [Window] { get }
-
The main window of the application. -Note: Setting this will bring the window forward to just below the main window of the frontmost application.
Declaration
Swift
public var mainWindow: WriteableProperty<OfOptionalType<Window>> { get }
-
The focused (or key) window of the application, the one currently accepting keyboard input. Usually the same as the main window, or one of its helper windows such as a file open dialog.
-Note: Sometimes the focused “window” is a sheet and not a window (i.e. it has no title bar and cannot be moved by the user). In that case the value will be nil.
Declaration
Swift
public var focusedWindow: Property<OfOptionalType<Window>> { get }
-
Whether the application is hidden.
Declaration
Swift
public var isHidden: WriteableProperty<OfType<Bool>> { get }
-
Declaration
Swift
public var description: String { get }