tags:

views:

32

answers:

1

I'm writing an app that should remain visible on the desktop at all times. As such, I have to prevent other apps' windows moving on top of my app's window.

The Dock.app from Mac OS X partially does this: if you resize windows, they won't resize into the Dock.app's screen space, and if you hit the windows' '+' button, the window will not cover the dock.

Is it possible to replicate this functionality, and if so, how can I do it?

A: 

I'm not sure how well it will work and it definitely requires "Enable access for assistive devices" to be enabled in the "Universal Access" system preference panel, but you could try using the Accessibility Hierarchy to monitor window frame changes of all on-screen windows and further manipulate them as desired.

Joshua Nozzi
This won't prevent other windows from resizing incorrectly.
Ah. I see what you're looking for. Updated answer.
Joshua Nozzi
Thanks. Unfortunately, that seems like a lot of work...
Yes. Software development usually is.
Joshua Nozzi