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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com