Re: Itunes is not resizing by accessibility api
Re: Itunes is not resizing by accessibility api
- Subject: Re: Itunes is not resizing by accessibility api
- From: James Dempsey <email@hidden>
- Date: Tue, 3 Jun 2008 09:13:32 -0700
Looking at the window in Accessibility Inspector, the iTunes window
does reports that AXSize is not a settable attribute. So, I would not
expect it to work, since it is reporting AXSize as a read-only property.
That said, I would file an enhancement request against iTunes to make
the window's AXSize a settable attribute.
-James
On Jun 2, 2008, at 5:37 AM, Smita Godbole wrote:
I am writing a sample application,
where I am using accessibilty api to resize the selected window.
For every other appliation it is working fine,except iTunes.
AXUIElementIsAttributeSettable (m_curWndElement, kAXSizeAttribute,
&settable);
NSLog(@"kAXSizeAttribute, settable :: %d ",settable); ----o/p == 0
AXUIElementIsAttributeSettable (m_curWndElement,
kAXPositionAttribute, &settable);
NSLog(@"kAXPositionAttribute settable :: %d ",settable); ----o/p == 1
AXError err1 = AXUIElementSetAttributeValue(m_curWndElement,
kAXSizeAttribute, newSizeRef1);
NSLog(@"err1 :: %d ",err1); ----o/p ==
-25205(kAXErrorAttributeUnsupported)
err1 = AXUIElementSetAttributeValue(m_curWndElement,
kAXPositionAttribute, newWindowPos1);
NSLog(@"err2 :: %d ",err1); ----o/p == 0 (kAXErrorSuccess)
Is AXUIElementRef object(i.e kAXSizeAttribute) of iTunes is settable
or not??
I have checked with other sample Carbon application, its working fine.
So is anybody knows why the same element can be repositioning but
not resizing??
why it is returning 0 when we can resize it manually??
Or is there any other way to resize the itunes application window??
Thanks & Regards,
- Smita Gosbole
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (Accessibility-
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
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