How to get Window Info Dict for just one Window?
How to get Window Info Dict for just one Window?
- Subject: How to get Window Info Dict for just one Window?
- From: Dave <email@hidden>
- Date: Fri, 10 Jun 2016 13:09:26 +0100
Hi All,
I’m using:
myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly,kCGNullWindowID));
To get an Array Containing the Info Dictionaries for all Visible Window, this works great, however I think find the Window I am interested in I save it, and sometime later I want to retrieve the Info Dictionary for just this one window rather than looping through the Array each time.
Is there a function I can use that will just return the Info Dictionary of the Window referenced by kCGWindowNumber or some other data in the Info dictionary?
All the Best
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden