3
votes

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
There probably isn't a non-deprecated way. Large chunks of display and ColorSync related code have been marked as deprecated with no documentation and no publicly accessible replacements in sight just to make the ship date. - Azeem.Butt
That would explain why I was having such a hard time. Thanks! - Reed Olsen
Also, note that deprecated does not mean it'll break any time soon, particularly if there's no available alternative. With a few notable exceptions (e.g. the Cocoa-Java bridge) Apple has removed essentially no public APIs from OS X as of yet. - Nicholas Riley
NSD, that comment is uncalled for; there are replacements for this and many other deprecated APIs. - Ben Stiglitz
You obviously haven't tried to use ColorSync in the last 6 years. - Azeem.Butt

1 Answers

1
votes

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