Sets the value of the specified attribute in the receiver to the specified value.
Deprecated
This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility
.
SDK
- macOS 10.1–10.10Deprecated
Framework
- App
Kit
Declaration
func accessibilitySetValue(_ value: Any?, forAttribute attribute: NSAccessibility.Attribute)
Parameters
value
The attribute value to be set.
attribute
The name of the attribute. See Constants for lists of attribute names.
Discussion
User interface classes must implement this method if any of its attributes are settable. Subclasses should invoke the superclass's implementation, if it exists, if attribute
is not implemented in the subclass.