Platforms to show: All Mac Windows Linux Cross-Platform

NSAppearanceMBS.appearance(item as Variant) as NSAppearanceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The appearance of the receiver, in an NSAppearance object.
Example:
dim v as NSViewMBS = PushButton1.NSViewMBS
dim a as NSAppearanceMBS = NSAppearanceMBS.appearance(v)

MsgBox a.name
Notes: The default value for this property is nil, which means that the receiver uses the appearance it inherits from the nearest ancestor that has set an appearance. When you set appearance to a non-nil value, the receiver and the views it contains use the specified appearance.

Feedback, Comments & Corrections

NSAppearanceMBS.appearanceNamed(name as string) as NSAppearanceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Returns the NSAppearance object with the specified name.
Notes:
name: The name of a standard or custom appearance.
Returns a standard or custom appearance object.

When you specify a standard appearance name—such as NSAppearanceNameAqua—this method returns a built-in appearance. If you specify a custom appearance name, this method searches the main bundle for an appearance file that has the specified name.
Available in OS X v10.9 and later.

See also:

Feedback, Comments & Corrections

NSAppearanceMBS.appearanceNamed(name as string, bundle as NSBundleMBS) as NSAppearanceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Creates an NSAppearance object initialized to the specified appearance file in the specified bundle.
Notes:
name: The name of the appearance file to search for, without any path information.
bundle: The bundle in which to search for the appearance file. If bundle is nil, this method searches in the main bundle.

Returns an initialized appearance object, or nil if an error occurs.
Available in OS X v10.9 and later.

See also:

Feedback, Comments & Corrections

NSAppearanceMBS.Available as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Whether this class is available.

Feedback, Comments & Corrections

NSAppearanceMBS.currentAppearance as NSAppearanceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Returns the NSAppearance object that’s set on the current thread.
Example:
MsgBox NSAppearanceMBS.currentAppearance.name
Notes:
When a UI element draws on the screen, it automatically sets the appearance that it’s using on the current thread.
Available in OS X v10.9 and later.

Feedback, Comments & Corrections

NSAppearanceMBS.effectiveAppearance(item as Variant) as NSAppearanceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The appearance that will be used when the receiver is drawn onscreen, in an NSAppearance object.
Notes:
The default value for this property is provided by the nearest ancestor of the receiver that has set an appearance.
You can use this property to ensure that an offscreen view sets the appropriate current appearance when it draws onscreen.
Available in OS X v10.9 and later.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameAccessibilityHighContrastAqua as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 19.4 Yes No No Yes, macOS only No
Function: A high-contrast version of the standard light system appearance.
Notes:
Don't assign an NSAppearanceMBS object with this type directly to one of your views. Instead, assign a light appearance to your view. AppKit then returns this type when the user enables the Increase Contrast option in the Accessibility system preferences.
Available on MacOS 10.14 or newer.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameAccessibilityHighContrastDarkAqua as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 19.4 Yes No No Yes, macOS only No
Function: A high-contrast version of the standard dark system appearance.
Notes:
Don't assign an NSAppearanceMBS object with this type directly to one of your views. Instead, assign a dark appearance to your view. AppKit then returns this type when the user enables the Increase Contrast option in the Accessibility system preferences.
Available on MacOS 10.14 or newer.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameAccessibilityHighContrastVibrantDark as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 19.4 Yes No No Yes, macOS only No
Function: A high-contrast version of the dark vibrant appearance.
Notes:
Don't assign an NSAppearanceMBS object with this type directly to one of your views. Instead, assign a dark appearance to your view. AppKit then returns this type when the user enables the Increase Contrast option in the Accessibility system preferences and the view's allowsVibrancy property is true.
Available on MacOS 10.14 or newer.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameAccessibilityHighContrastVibrantLight as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 19.4 Yes No No Yes, macOS only No
Function: A high-contrast version of the light vibrant appearance.
Notes:
Don't assign an NSAppearanceMBS object with this type directly to one of your views. Instead, assign a light appearance to your view. AppKit then returns this type when the user enables the Increase Contrast option in the Accessibility system preferences and the view's allowsVibrancy property is true.
Available on MacOS 10.14 or newer.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameAqua as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The name of the standard Aqua appearance.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameDarkAqua as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 20.3 Yes No No Yes, macOS only No
Function: The name of the dark mode Aqua appearance.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameLightContent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The name of the standard appearance that can be used by controls in light content areas (not including window-frame areas).

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameVibrantDark as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The name of the vibrant dark appearance.
Notes:
Available on Mac OS X 10.10 and newer.
Should only be set on an NSVisualEffectView, or one of its container subviews.

Feedback, Comments & Corrections

NSAppearanceMBS.NSAppearanceNameVibrantLight as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: The name of the vibrant dark appearance.
Notes:
Available on Mac OS X 10.10 and newer.
Should only be set on an NSVisualEffectView, or one of its container subviews.

Feedback, Comments & Corrections

NSAppearanceMBS.setAppearance(item as Variant, appearance as NSAppearanceMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Sets the appearance of the receiver, in an NSAppearance object.
Notes: The default value for this property is nil, which means that the receiver uses the appearance it inherits from the nearest ancestor that has set an appearance. When you set appearance to a non-nil value, the receiver and the views it contains use the specified appearance.

Feedback, Comments & Corrections

NSAppearanceMBS.setCurrentAppearance(appearance as NSAppearanceMBS = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacFrameworks Plugin 14.3 Yes No No Yes, macOS only No
Function: Sets the current appearance to the specified NSAppearance object.
Notes:
appearance: The NSAppearance object that should be used for the window or view, or nil to specify the default appearance.

When you set an appearance on a window, all views in that window—including the window background and controls in both the frame and content areas—use that appearance. By default, AppKit sets the current appearance for standard windows and views during window drawing, so you don't need to use this method unless you want to change the current appearance of a specific window or view.

You can use this method to set the current appearance for an offscreen view to the appearance that will be used when the view is drawn. To do this, use the offscreen view’s effectiveAppearance for the appearance parameter.

Available in OS X v10.9 and later.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS FileMaker tutorial videos