Pinning an object to the menu bar
Pinning an object to the menu bar
- Subject: Pinning an object to the menu bar
- From: August Trometer <email@hidden>
- Date: Thu, 18 May 2006 18:25:37 -0400
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:
This email sent to email@hidden