Filling edges of NSView-customized NSMenu

  • Hi all,



    Does exist any way to fill top and bottom edges of pop-up NSMenu in a specified color?



    I perform porting of one carbon application to cocoa, to be 64-bit compatible. The problem is that the old application has dark-background menus, and when I tried to do the same thing under cocoa I found that no way exist to do so. I'm able to fill background of place where my NSView is drawn but I can't customize drawing of top and bottom edges/corners and they remain white.



      /-------------\          <------ this remains white

     |My NSView 1   |          <------ here oll ok

     |My NSView 2   |

     |My NSView 3   |

     |My NSView 4   |

     |......            |

     \--------------/          <------ here problem again
  • On Apr 22, 2010, at 3:33 AM, Yuriy Shevyrov wrote:

    > Hi all,
    >
    >
    >
    > Does exist any way to fill top and bottom edges of pop-up NSMenu in a specified color?
    >
    >
    >
    > I perform porting of one carbon application to cocoa, to be 64-bit compatible. The problem is that the old application has dark-background menus, and when I tried to do the same thing under cocoa I found that no way exist to do so. I'm able to fill background of place where my NSView is drawn but I can't customize drawing of top and bottom edges/corners and they remain white.
    >
    >

    No, sorry, this isn't possible yet.

    -Peter
previous month april 2010 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