Disabling round corners at the top of a NSMenu

  • Hello,

    I have an application which posts a NSMenuItem in the menu bar and
    attached to it is a custom menu I build by subclassing NSMenu. This
    works fine but in Leopard this custom menu has round corners at both
    the top and the bottom of the menu, which looks ood. Is there a way to
    tell the menu to not display round corners at the top? I didn't find
    such method in the documentation.

    Thank you for your help.

    Regards,
    Benoit
  • It sound to me like your displaying this as a popup instead of like a
    usual menu, since that would be the correct appearance for a popup
    menu. So, you might try looking in that direction. I'm pretty new to
    cocoa (been doing carbon previously) so I can't specify any API.

    HTH,
    David Alger

    ********************
    Ron Paul for President 2008
    http://ronpaul2008.com/

    RESTORE THE REPUBLIC & RETAIN YOUR RIGHTS

    On Nov 12, 2007, at 2:36 AM, Benoît wrote:

    > Hello,
    >
    > I have an application which posts a NSMenuItem in the menu bar and
    > attached to it is a custom menu I build by subclassing NSMenu. This
    > works fine but in Leopard this custom menu has round corners at both
    > the top and the bottom of the menu, which looks ood. Is there a way to
    > tell the menu to not display round corners at the top? I didn't find
    > such method in the documentation.
    >
    > Thank you for your help.
    >
    > Regards,
    > Benoit
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today