views:

2059

answers:

1

I've been plugging away at this for a few hours now, and haven't found a good answer. In Leopard, I can programmatically change the screen resolution using Quartz Display Services with CGConfigureDisplayMode. Unfortunately, this has been deprecated in 10.6.

This seems like a simple task: how can I change the screen resolution with non-deprecated methods in Snow Leopard?

Thanks!

+1  A: 

The functionality has been updated; take a look at CGConfigureDisplayWithDisplayMode in <CoreGraphics/CGDisplayConfiguration.h>.

Ben Stiglitz
This works great in Snow Leopard, but not for my particular application :( I'm looking to set the resolution permenantly, but this method "persists for the life of the program, and automatically reverts to the permanent setting when the program terminates." Thanks!
Reed Olsen
Whoops! Updated the answer to reflect your needs.
Ben Stiglitz