Highlighting a custom NSPopUpButtonCell subclass

Discussion in 'Mac Programming' started by semicolons, Jan 12, 2009.

  1. semicolons macrumors newbie

    Joined:
    Feb 14, 2008
    #1
    Greetings all,

    I am using a subclass of NSPopUpButtonCell to do custom drawing. Simply, how can I implement custom highlighting too? My highlighting code is called, but it is not drawn until after the menu closes.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    In your drawing method, check for [self isHighlighted]. That should be called correctly before the menu shows.
     
  3. semicolons thread starter macrumors newbie

    Joined:
    Feb 14, 2008

Share This Page