Re: AXUIElementCopyAttributeValue useage
Re: AXUIElementCopyAttributeValue useage
- Subject: Re: AXUIElementCopyAttributeValue useage
- From: Modesitt Software <email@hidden>
- Date: Wed, 7 Jan 2004 15:43:57 -0800
On Jan 6, 2004, at 10:59 PM, Eric Schlegel wrote:
On Jan 6, 2004, at 9:41 PM, Modesitt Software wrote:
In my code I use AXUIElementCopyAttributeValue on a window in this
manner:
CFTypeRef cfRef;
axErr = ::AXUIElementCopyAttributeValue( inElement,
kAXModalAttribute, &cfRef );
Then I get the pascal string from cfRef, and it looks like this:
"<CFBoolean 0xa0190b98 [0xa01900e0]>{value = false}"
As a side point, I'm curious about how you got a Pascal string from
cfRef.
I used CFCopyDescription and then CFStringGetPascalString.
Or is there some function that tells me it's a Boolean value, and the
value is true (or false)?
Yes:
if ( CFGetTypeID( cfRef ) == CFBooleanGetTypeID() )
windowIsModal = CFBooleanGetValue( cfRef );
Great, thank you!
-Bill
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.