对于Mojave中的所有辅助功能提示,我想确保某个提示对我们的应用程序用户可见,并且不隐藏在某些窗口后面。我可以枚举所有窗口并检索以下信息:
kCGWindowIsOnscreen = 1;
kCGWindowLayer = 101;
kCGWindowMemoryUsage = 1248;
kCGWindowName = "Xcode";
kCGWindowNumber = 797;
kCGWindowOwnerName = Xcode;
kCGWindowOwnerPID = 320;
kCGWindowSharingState = 1;
kCGWindowStoreType = 1;
但是如何将属于另一个应用程序的该窗口置于前台?