AXUIElementIsAttributeSettable(_:_:_:)
Returns whether the specified accessibility object's attribute can be modified.
Declaration
func AXUIElementIsAttributeSettable(_ element: AXUIElement, _ attribute: CFString, _ settable: UnsafeMutablePointer<DarwinBoolean>) -> AXErrorParameters
- element:
The AXUIElementRef representing the accessibility object.
- attribute:
The attribute name.
- settable:
On return, a Boolean value indicating whether the attribute is settable.
Return Value
If unsuccessful, AXUIElementIsAttributeSettable may return one of the following error codes, among others:
kAXErrorCannotCompleteThe function cannot complete because messaging has failed in some way (often due to a timeout).
kAXErrorIllegalArgumentOne or more of the arguments is an illegal value.
kAXErrorAttributeUnsupportedThe specified AXUIElementRef does not support the specified attribute.
kAXErrorNoValueThe specified attribute does not have a value.
kAXErrorInvalidUIElementThe AXUIElementRef is invalid.
kAXErrorNotImplementedThe process does not fully support the accessibility API.
Discussion
If you receive a kAXErrorCannotComplete error from this function, you might want to repeat the request or change the timeout value.
See Also
Miscellaneous
AXIsProcessTrusted()AXIsProcessTrustedWithOptions(_:)AXUIElementCopyActionDescription(_:_:_:)AXUIElementCopyActionNames(_:_:)AXUIElementCopyAttributeNames(_:_:)AXUIElementCopyAttributeValue(_:_:_:)AXUIElementCopyAttributeValues(_:_:_:_:_:)AXUIElementCopyElementAtPosition(_:_:_:_:)AXUIElementCopyMultipleAttributeValues(_:_:_:_:)AXUIElementCopyParameterizedAttributeNames(_:_:)AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)AXUIElementCreateApplication(_:)AXUIElementCreateSystemWide()AXUIElementGetAttributeValueCount(_:_:_:)AXUIElementGetPid(_:_:)AXUIElementGetTypeID()AXUIElementPerformAction(_:_:)AXUIElementSetAttributeValue(_:_:_:)AXUIElementSetMessagingTimeout(_:_:)