Slide 92
Slide 92 text
Quartz Window Services Reference
let windowInfosRef = CGWindowListCopyWindowInfo(
[CGWindowListOption.OptionOnScreenOnly, CGWindowListOption.OptionOnScreenBelowWindow],
windowID
)
var items = [Dictionary]()
for i in 0.. = CFArrayGetValueAtIndex(windowInfosRef, i)
let lineRef = unsafeBitCast(lineUnsafePointer, CFDictionaryRef.self)
let dictionary = lineRef as Dictionary
print((dictionary[kCGWindowLayer as String] as! NSNumber).integerValue)
items.append(dictionary)
}