Highlighting a custom NSPopUpButtonCell subclass

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

  1. semicolons macrumors newbie

    Feb 14, 2008
    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


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

    Feb 14, 2008

Share This Page