Created
May 16, 2017 22:58
-
-
Save stek29/79ae0de955313c5d7b90f144adba3c69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Very simple program to print all windows | |
// Obviously needs `-framework CoreGraphics -framework Foundation` | |
#import "CoreGraphics/CoreGraphics.h" | |
#import "Foundation/Foundation.h" | |
int main(void) { | |
NSArray *arr = [(NSArray *) CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID) copy]; | |
NSLog(@"%@", arr); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment