• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change a NSMenu's shape?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change a NSMenu's shape?


  • Subject: Re: Change a NSMenu's shape?
  • From: Peter Ammon <email@hidden>
  • Date: Mon, 12 Nov 2007 13:13:56 -0800

You may use -[NSStatusItem popUpStatusItemMenu:] to pop up an arbitrary menu with the correct appearance for a main menu (the sharp top corners).

On Nov 12, 2007, at 12:50 PM, Ken Ferry wrote:

Hi Peter,

No, I don't think there's a way to make a pop up button's menu look
like a status item's menu.

Can you use -[NSStatusItem setMenu:]?  If not, could you please file a
bug describing why?

Thanks,
Ken
Cocoa Frameworks

On Nov 10, 2007 1:15 AM, Peter Maurer <email@hidden> wrote:
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:
This email sent to email@hidden


_______________________________________________

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Change a NSMenu's shape?
      • From: Peter Maurer <email@hidden>
References: 
 >Change a NSMenu's shape? (From: Peter Maurer <email@hidden>)
 >Re: Change a NSMenu's shape? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: drawing an array of pixels to the screen
  • Next by Date: Re: Resolution independent cursor
  • Previous by thread: Re: Change a NSMenu's shape?
  • Next by thread: Re: Change a NSMenu's shape?
  • Index(es):
    • Date
    • Thread