https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/doc/uid/TP30001070-CH202-TPXREF102 Quartz_Services CGDirectDisplayID display = kCGDirectMainDisplay;