Can I control other Windows events like resizing, hiding, etc. From NSNotificationCenter?

I want to track all windows (including windows of other applications), such as resizing, hiding, hiding, etc. I found that if I use

[NotificationCenter defaultCenter]

I just get the event from my application window. But what about

NSWorkspace Notification Center?

+3
source share
1 answer

NSWorkspace has nothing to do with windows, so no.

The Distributed Notification Center will also not work.

, - ; . NSWindow , , , NSWorkspace. , , - , .

API Accessibility , , , " ".

+1

Source: https://habr.com/ru/post/1765480/


All Articles