Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
How to determine if a sheet is topmost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to determine if a sheet is topmost



My code receives notifications from the following:
NSAccessibilityTitleChangedNotification
NSAccessibilityFocusedWindowChangedNotification
NSAccessibilityMainWindowChangedNotification
I can then get the window title and other elements without any problems. For example, I use this to obtain the window title:
axErr = AXUIElementCopyAttributeValue( inElement, kAXTitleAttribute, &cfRef );


However, I want to determine if the top window is a sheet or not. I tried using
axErr = AXUIElementCopyAttributeValue( inElement, kAXTopLevelUIElementAttribute, &cfRef );
but I keep getting this error in return:
kAXErrorAttributeUnsupported = -25205,
Is this the correct method to determine if the top window is a sheet or not?
Thanks!


_______________________________________________
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




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.