Mailing Lists: Apple Mailing Lists

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

Change a NSMenu's shape?



In Leopard, menus that pop up via ...

+ (void)popUpContextMenu:(NSMenu *)menu withEvent:(NSEvent *)event forView:(NSView *)view [withFont:(NSFont *)font]

... are always displayed with rounded corners, which looks just wrong with menus for certain kinds of custom pop-up buttons and, most importantly, NSStatusItems that pop up their menus themselves -- instead of using NSStatusItem's built-in menu functionality.

On the other hand, generic menu bar menus _are_ displayed with sharp upper corners.

So I was wondering: Is anyone aware of a way to change those corners for a NSMenu or its underlying Carbon menu?

Thanks!

Peter.

--
manytricks.com | petermaurer.de
_______________________________________________

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:
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.