Fullscreen application choices
Fullscreen application choices
- Subject: Fullscreen application choices
- From: Ricky Sharp <email@hidden>
- Date: Sun, 11 Jul 2004 16:41:59 -0500
I'm starting to migrate my Carbon-based application shell (on which all
my apps are based) to Cocoa. The first task is to pick APIs to achieve
the following:
* Place blanking windows on all devices (monitors)
* Place a content window centered on the main device (or whatever
device the user chooses). The content window will represent my
"universe". The content window needs to receive normal events. I
dispatch the events to virtual "controls" that make up the universe.
* hide the menu bar and Dock.
I've been looking at two ways to do this in Cocoa:
(1) manage a set of windows myself (blanking plus content). Replace
the usage of Display Mgr (which I use to iterate devices) with
NSScreen. The content window would be a simple derived class from
NSWindow so I can set appropriate attributes (e.g. make it borderless)
and I'd have a single custom view derived from NSView.
(2) Use the "capture display" APIs in Core Graphics.
Questions...
For (1), how would I go about hiding the menu bar and Dock? In Carbon,
I use HideMenuBar.
I'm hoping though to use (2) as the system manages blanking windows for
me and I can also have the nice fade effects, etc. While I am familiar
in the concept of writing directly to the screen, is there some method
of telling a custom NSView instance about the display's base address
(as obtained by CGDisplayBaseAddress)? I thought it may be easier to
manage an NSView for dealing with events.
Or, if I go with (2), do I really need to manage a drawing buffer
myself?
The only example code I've found for capturing the display is the
ColorBars sample. It doesn't handle event handling though. Technote
2007 does a good job in describing the various direct display APIs, but
also omits any integration with event handling.
Thanks for any advice,
By the way, the baseline for this shell will be Mac OS X 10.3. I'm
using Xcode 1.2.
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
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.