More experimenting: if I use
myWindowListOptions = kCGWindowListExcludeDesktopElements | kCGWindowListOptionIncludingWindow; myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowID)); it seems a bit better, but I’m not sure if it is valid or not? Cheers Dave > On 10 Jun 2016, at 16:15, Dave <d...@looktowindward.com> wrote: > > Hi, > > If I do this: > > myWindowListOptions = kCGWindowListExcludeDesktopElements | > kCGWindowListOptionOnScreenAboveWindow | kCGWindowListOptionIncludingWindow | > kCGWindowListOptionIncludingWindow; > myWindowArray = (NSArray*) > CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowID)); > > Then this works ok, but slows down a LOT when the Window is over a “Crowed” > area of the Screen(s). Is there no way to get JUST the Window I am interested > in, e.g. the one Specified by theWindowID (which is obtained from the Info > Dictionary ONCE via the kCGWindowNumber key). > > I cannot believe that there isn’t a function to do this simple thing? > > Cheers > Dave > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/dave%40looktowindward.com > > This email sent to d...@looktowindward.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com