Re: cocoa-dev digest, Vol 1 #163 - 15 msgs
Re: cocoa-dev digest, Vol 1 #163 - 15 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #163 - 15 msgs
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 18 Jun 2001 17:28:09 -0400
Ken,
NSScreen will definitely get you most of the way there. This is
aimed at what happens beyond NSScreen.
For all intents and purposes, you are building a "screen saver" in
that you are building an application that'll hang on the wall (i.e.
passive UI?) that wants to take over the whole screen and likely(?) hide
the menu bar, etc.
What you will probably want to do is something like:
- set up your NIB files in the "normal" fashion; ensuring that all
objects have the little springies set such that resizing the windows do
the right thing
- set the two windows to be non-deferred, non-visible at load
- load the nib
- resize the windows in the nib to the appropriate size for each
monitor (they are still invisible at this point, but the resizing
*should* work because they are non-deferred)
- create two new windows that are exactly the size of the two
screens. The windows should be created without borders/titlebar, etc..
but use buffering!
- rip the content views out of the NIB loaded windows and shove 'em
into your manually created windows.
- make the windows visible
- set the "level" of the window to above the level of the
dock/menu. This'll effectively obscure the menu bar (and is exactly how
the screensaver code works).
The end result should be windows that contain the UI you want without
having to programmatically define the UI but that fully cover the screen
without a title bar or other acoutrements.
b.bum
On Monday, June 18, 2001, at 04:35 PM, email@hidden
wrote:
It's basically a front end to a database which needs to have 2 windows
(i.e. 2 documents), 1 on each screen, both full screen. So I need to
know
the global coords for each monitor (including each one's resolution so
that I can go full screen). It won't have a GUI as such, as it's for
displaying stuff on flat screen monitors hanging on walls, not for users
to actually 'use' (there's another 'normal' app for that). But I'll
check
the NSScreen stuff before I ask any more stupid questions! (That doesn't
mean I won't ask any more stupid questions, just that there'll be a
pause
first!).