Mailing Lists: Apple Mailing Lists

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

Itunes is not resizing by accessibility api



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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden

This email sent to 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.