Hello!
I was messing around with Quartz Window Service and I came up with this:
The NSLog returns several attributes about windows.
My question is:
A: How do I isolate apps with windows from apps without windows?
ex: The array contains "Menubar"...I know Menubar isn't a "real" app, how can I exclude stuff like this. I thought kCGWindowListExcludeDesktopElemets did this.
B: How can I take all the apps it lists and create sperate array's for each one... everything is in one big array with the app name and its properties, can I isolate each app into its own array with its own properties?
Thanks!
I was messing around with Quartz Window Service and I came up with this:
Code:
CFArrayRef listOfWindows = CGWindowListCopyWindowInfo(kCGWindowListExcludeDesktopElements | kCGWindowListOptionOnScreenOnly,kCGNullWindowID );
NSLog(@"List of windows:%@",listOfWindows);
The NSLog returns several attributes about windows.
My question is:
A: How do I isolate apps with windows from apps without windows?
ex: The array contains "Menubar"...I know Menubar isn't a "real" app, how can I exclude stuff like this. I thought kCGWindowListExcludeDesktopElemets did this.
B: How can I take all the apps it lists and create sperate array's for each one... everything is in one big array with the app name and its properties, can I isolate each app into its own array with its own properties?
Thanks!