Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSRunningApplicationMBS.activationPolicy as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the activation policy of the application. (read-only)
Notes:
The value returned by this property is usually fixed, but it may change through a call to activateWithOptions.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.active as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates whether the application is currently frontmost. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox str(n.active)
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.bundleIdentifier as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the CFBundleIdentifier of the application. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox n.bundleIdentifier
Notes:
The value of this property will be nil if the application does not have an Info.plist.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.bundleURL as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the URL to the application's bundle. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox n.bundleURL
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.executableArchitecture as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the URL to the application's executable. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox str(n.executableArchitecture) // shows 7
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.executableURL as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the URL to the application's executable. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox n.executableURL
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.finishedLaunching as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates whether the receiver's process has finished launching, (read-only)
Notes:
The value of this property corresponds to the running application having received an NSApplicationDidFinishLaunchingNotification notification internally. Some applications do not post this notification (applications that do not rely on NSApplication) and so are never reported as finished launching.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: The internal reference to the NSRunningApplication object.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.hidden as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates whether the application is currently hidden. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox str(n.hidden)
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.icon as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Returns the icon for the receiver's application. (read-only)
Example:
dim n as new NSRunningApplicationMBS

dim i as NSImageMBS = n.icon

// without this call the size is 32x32 Pixel
i.setSize 512,512

Backdrop = i.CopyPictureWithMask
Notes:
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.launchDate as date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the date when the application was launched. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox n.launchDate.ShortTime
Notes:
This property is not available for all applications. Specifically, it is not available for applications that were launched not launched by LaunchServices.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.localizedName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the localized name of the application. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox n.localizedName
Notes:
The value of this property is dependent on the current localization of the application and is suitable for presentation to the user.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.ownsMenuBar as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Returns whether the application owns the current menu bar.
Example:
// put in a timer...
dim r as NSRunningApplicationMBS = NSRunningApplicationMBS.currentApplication
window1.Title = str(r.ownsMenuBar)
Notes:
Available in Mac OS X v10.7 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.processIdentifier as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates the process identifier (pid) of the application. (read-only)
Example:
dim n as new NSRunningApplicationMBS

MsgBox str(n.processIdentifier)
Notes:
Not all applications have a pid. Applications without a return a value of -1.
Do not rely on this for comparing processes, instead compare NSRunningApplication instances using isEqual:.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSRunningApplicationMBS.terminated as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Process MBS MacCocoa Plugin 9.7 Yes No No Yes, macOS only No
Function: Indicates that the receiver's application has terminated. (read-only)
Notes:
The value of terminated is true if the receiver's application has terminated, otherwise false.
This property is observable using key-value observing.
Available in Mac OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

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





Links
MBS FileMaker tutorial videos