Fullscreen in Cocoa

Member
Posts: 370
Joined: 2002.04
Post: #1
I've looked around for sample code, but there seems to be nothing on this board about it and all the code I could find on Apple's sample code section was Carbon. How can I change the screen resolution and display an NSWindow in it?
Thanks,
Steven

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 177
Joined: 2002.08
Post: #2
I don't think there is a Cocoa interface for changing the display resolution, you'll have to use core graphics.
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #3
How would you do that? I can't find anything again... (Apple's source code section is so very badly organized... Sad)
Steven

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
w_reade
Unregistered
 
Post: #4
http://developer.apple.com/technotes/tn/tn2007.html covers the CGDirectDisplay API...
Quote this message in a reply
Moderator
Posts: 916
Joined: 2002.10
Post: #5
http://www.withay.com/macosx/opengl/nehe.html

his ports have going to fullscreen.
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #6
CoreGraphics is accessible by including the ApplicationServices.framework. It's not necessary to include all the Carbon libraries.

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Member
Posts: 196
Joined: 2002.04
Post: #7
I think this may answer your question: http://zerobyzero.ca/~ktatters/tutorials/

Iceman
Quote this message in a reply
Post Reply