I am using Quartz through an FFI based on ffilib (that is Quartz is dynamically loaded). A call to CGWindowListCopyWindowInfo returns an CFArray of dictionaries containing information on windows. One interesting key is kCGWindowName, which can be used to get the name of a window.
In C one would include the approriate header file, but since I am using ffilib I need to know the value of kCGWindowName. According to Apple’s documentation it is CFStringRef.
How can I obtain the value of kCGWindowName?
An attempt grepping for kCGWindowName in the header files gave no usable result.
Something like this…