Re: Highlighting an NSPopUpButtonCell subclass
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