• 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: Highlighting an NSPopUpButtonCell subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlighting an NSPopUpButtonCell subclass


  • Subject: Re: Highlighting an NSPopUpButtonCell subclass
  • From: Benjamin Dobson <email@hidden>
  • Date: Mon, 12 Jan 2009 22:33:19 +0000


On 11 Jan 2009, at 11:45:49, Benjamin Dobson wrote:

I have an NSPopUpButtonCell subclass for custom drawing. Quite simply, how can do custom highlighting before the popup menu appears? - highlight:withFrame:inView: is called before the menu appears, but no drawing is done. The same code in an NSButtonCell subclass works fine.

To follow up, someone on MacRumors pointed me to checking [self isHighlighted] in drawRect:inView:
From there I am calling highlight:withFrame:inView: directly, and all is going well.
_______________________________________________


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


References: 
 >Highlighting an NSPopUpButtonCell subclass (From: Benjamin Dobson <email@hidden>)

  • Prev by Date: Re: NumberFormatter Defaulting all values when input incorrect
  • Next by Date: Re: Detecting mouseover in an NSActionCell subclass
  • Previous by thread: Highlighting an NSPopUpButtonCell subclass
  • Next by thread: cocoa design for a database application
  • Index(es):
    • Date
    • Thread