Display mode / resolution permanent change
Display mode / resolution permanent change
- Subject: Display mode / resolution permanent change
- From: James Reynolds <email@hidden>
- Date: Wed, 28 Aug 2002 16:06:20 -0600
I am trying to figure out how to change the display mode/resolution
permanently. I am writing this for Mac OS X 10.1.5. I think I am
using cocoa here... I'll post it just in case...
I copied and modified the sample code from this URL:
http://developer.apple.com/samplecode/Sample_Code/Graphics_2D/ModeWhacker.htm
However, as stated on this page:
http://developer.apple.com/technotes/tn/tn2007.html#Section7
CGDisplaySwitchToMode is not permanent, but the display mode reverts
back when the application finishes.
So I searched around and found this carbon function:
http://developer.apple.com/techpubs/macosx/Carbon/graphics/DisplayManager/Display_Manager/Functions/Determining__nfigurations.html#//apple_ref/c/func/DMSaveScreenPrefs
I added this line at the end of the code:
DMSaveScreenPrefs(NULL, NULL, NULL);
But when I run it from the command line, the display switches like it
should, but then I get this (and the display goes back to prerun
state):
DMSaveScreenPrefs not implemented.
Does anyone have any idea what this means? I am pretty new to
writing cocoa/carbon stuff.
--
Thanks,
James Reynolds
University of Utah
Student Computing Labs
email@hidden
801-585-9811
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.