Setting the window level over Accessibility

2020-07-11 07:07发布

问题:

I'm working on a Mac OS X application which manipulates a window belonging to another app. I use Accessibility for that.

I have already succeeded to move the window and query its properties from my app. Now I need to make the window stay "always on top". Based on another post I need to set the window level to NSFloatingWindowLevel. Is that possible over the Accessibility API? I don't see any Accessibility or Carbon attribute that would correspond to the window level.