How to control external monitor output using cocoa?
开发者_JAVA百科I am making a sample application in cocoa in which I have to control video output being send to external monitor connected to a macbook using Mini Display Port/ Mini DVI.
Can anyone suggest me how can I implement it in cocoa?
Thanks in advance for any link, suggestion.
Miraaj
It's not clear what you mean by "control video output" here. If your goal is to manage the display modes and then display full-screen output, you should read Quartz Display Services Programming Guide, which will walk you through most of that.
A simpler solution in many cases, though, is to just create a borderless window using the frame of the the desired screen. You can get information about the available screens in Cocoa using NSScreen. Then it's just standard window drawing.
精彩评论