I dont' believe that this is exposed anywhere in an API, and once you are there, then I don't believe that any API will let you shut down a display. These are things that are completely managed by the OS, and are not usually considered things that programs should be playing with.

Now if you were to explain to us what you are really after (not how you are trying to solve the problem, but what the problem actually is), then there is a better chance that someone can help you.

I dont' believe that this is exposed anywhere in an API, and once you are there, then I don't believe that any API will let you shut down a display. These are things that are completely managed by the OS, and are not usually considered things that programs should be playing with.

Now if you were to explain to us what you are really after (not how you are trying to solve the problem, but what the problem actually is), then there is a better chance that someone can help you.

Click to expand...

What I want to explore is why when i plug the external display adapter to my MB Mini Display Port nothing happens. The idea was calling the function that detect displays by myself and inspecting the return value.

And the other thing is If there is a way to programmatically shutdown the MB main display while using external one. For now, the only way to accomplish this is using the MB with the lid closed. ( or waking it up using external USB device ).

I'm not sure if all of this is possible, that's why I wanted to learn how OSX does this things

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.