Hello everyone,
Has anybody else encountered situations where AXUIElementCopyAttributeValue can take up to 6 seconds before returning nil?
I'm running the following piece of code on the main thread of my background app:
-(AXUIElementRef) getElementAttribute:(CFStringRef)name
{
NSLog(@"getElementAttribute: %@", name);
AXUIElementRef value;
if (AXUIElementCopyAttributeValue(_element, name, (CFTypeRef *)&value) != kAXErrorSuccess) {
NSLog(@"getElementAttribute end with nil");
return nil;
}
NSLog(@"getElementAttribute end");
return value;
}
It works reliably until a foreground application Keychain password prompt comes up, at which point I see this starting to occur in the logs of my background app:
2012-12-31 12:13:38.770 UndisclosedApp[2554:303] getElementAttribute: AXFocusedUIElement
2012-12-31 12:13:44.771 UndisclosedApp[2554:303] getElementAttribute end with nil
I'll be filing a bug report a little later with some sample code once I can isolate the smallest combination of factors to reproduce the issue, but I was curious to see if anybody else encountered a similar situation.
Thanks,
Dave Poirier
Senior Software Developer
cell: 18192097798
skype: ekscrypto
All I need is a towel, everything else can be answered by 42.
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden