Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of menu or menu item



I need to find the size or frame of a NSMenu I will generate as a popup context menu to determine if the menu should be placed above or below the button i associate it with (like Mail's action button where it places the menu above the button if the window is too close to the bottom of the screen). I can't figure out how to get the menu's size (or even the menu item's size to multiply by the number of items).

Any ideas? Thanks.

-Mitch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.