Re: AXUIElementCopyAttributeValue useage
Re: AXUIElementCopyAttributeValue useage
- Subject: Re: AXUIElementCopyAttributeValue useage
- From: Eric Schlegel <email@hidden>
- Date: Tue, 6 Jan 2004 22:59:46 -0800
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.
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 );
-eric
_______________________________________________
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.