• 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
NSScreen Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScreen Issues


  • Subject: NSScreen Issues
  • From: JECKER Frédéric <email@hidden>
  • Date: Mon, 28 Sep 2009 08:46:53 +0200

Hi,
I have a custom NSWindow that I wish to place right under the main screen
menubar.
In the (id)initWithContentRect: method I use the [[NSScreen mainScreen]
visibleFrame] to calculate the origin of my new window.
For a 1680x1050 screen resolution, the returned rect is 1676x1028 . When I
set my new window's origin to (x:0,y:1028) the window appears far to high
and
gets out of the screen. Doing the placement using InterfaceBuilder returns
971 as my window's origin.y rect property.

What am I doing wrong ? How should I calculate my window's origin ?

Thanks
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSScreen Issues
      • From: Graham Cox <email@hidden>
    • Re: NSScreen Issues
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Core Animation and Run Loops
  • Next by Date: Re: Core Animation and Run Loops
  • Previous by thread: Re: how do i make SecKeyRef object from NSData of publicKey value
  • Next by thread: Re: NSScreen Issues
  • Index(es):
    • Date
    • Thread