• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making a window the size of the desktop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Making a window the size of the desktop?
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Making a window the size of the desktop? (From: Austin Sarner <email@hidden>)

  • Prev by Date: Re: Can NSStatusItem contain NSTextField ?
  • Next by Date: Re: Trouble comparing NSCalendarDates
  • Previous by thread: Re: Making a window the size of the desktop?
  • Next by thread: Re: Making a window the size of the desktop?
  • Index(es):
    • Date
    • Thread