Re: Making a window the size of the desktop?
Re: Making a window the size of the desktop?
- Subject: Re: Making a window the size of the desktop?
- From: Peter Maurer <email@hidden>
- Date: Mon, 15 Nov 2004 10:30:33 +0100
Hey, I have an overlay window that lies above the desktop icons that
is positioned directly above the desktop (with an NSImageView that is
set to the desktop background). Using the following code, it does not
line up properly:
So where is your window? Is it in the wrong place? Is it too small?
And BTW, depending on what you're trying to do, you might be better off
using [[NSScreen screens] objectAtIndex: 0] for your "main" screen.
There's a method called something like "constrainToScreen" in
NSWindow. return NO from that (or return the rect without constraining
it, or something) and it should work.
I usually use NSBorderlessWindowMask NSWindows, and I've never even
heard of the "constrainToScreen" method ;-) Could it be that using
borderless windows liberates you from having to implement
constrainToScreen? (Come to think of it, NSWindow's standard reply for
constrainToScreen might even depend on the window's style mask...)
Peter.
___
http://www.petermaurer.de/butler
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden