NSScreen Issues
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