Re: Pinning an object to the menu bar
Re: Pinning an object to the menu bar
- Subject: Re: Pinning an object to the menu bar
- From: John Stiles <email@hidden>
- Date: Thu, 18 May 2006 15:34:33 -0700
Well, there is this...
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSMenu.html#//apple_ref/occ/instm/
NSMenu/menuBarHeight
On May 18, 2006, at 3:25 PM, August Trometer wrote:
I have an app where I want to pin a window to the top of the
screen, just below and abutting the menu bar. Right now I'm simply
finding the dimensions of the main screen (with [[NSScreen
mainScreen] visibleFrame]). I then set the position of the window
based on this frame.
When testing on different Macs, I'm finding that on some displays
this window aligns correctly. On others, it overlaps the menu bar.
Does the height of the menu bar change with the size or resolution
of the screen? Is there a good way to position something so it is
always right at the bottom of the bar?
Thanks!
August
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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