Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Itunes is not resizing by accessibility api



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:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden


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:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden

This email sent to email@hidden
References: 
 >Itunes is not resizing by accessibility api (From: "Smita Godbole" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.