开发者

How to control external monitor output using cocoa?

开发者 https://www.devze.com 2023-01-06 16:30 出处:网络
开发者_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.

开发者_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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号