Drawing Native OSX Windows with D

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 29 02:13:36 PST 2015


On 2015-11-29 09:03, Mike McKee wrote:
> A few interesting things here. I tried to do these things via the new
> Apple language, Swift.
>
> * You can enum windows, but unlike Microsoft Windows, you have no
> permissions to hide a window. BTW, hiding a window is a window object
> method called orderOut(nil), and they only permit it on your own
> windows, not another application's windows. However, that said, there's
> a neat AppleScript technique that seems to work in hiding the entire
> application, rather than just the window.

There are applications like Moom [1] that lets you control the size and 
position of the windows of other applications, not sure about hiding 
windows though. I'm not entirely sure how they work but they require 
accessibility to be enabled (System Preferences -> Security & Privacy -> 
Privacy -> Accessibility).

[1] https://manytricks.com/moom/

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list