Re: Set focus on NSView in an NSMenuItem
Re: Set focus on NSView in an NSMenuItem
- Subject: Re: Set focus on NSView in an NSMenuItem
- From: Lieven Dekeyser <email@hidden>
- Date: Fri, 15 Feb 2008 15:41:42 +0100
On 15 Feb 2008, at 15:37, Pierre Bernard wrote:
Hi Lieven!
Thanks a bunch! This works great.
So far it actually works better than what Apple DTS has suggested. I
still have them working on it though.
I don't quite understand
drawStatusBarBackgroundInRect:withHighlight. How do I know, in my
view's drawRect method, whether or not to draw the highlight?
I manage it myself.. I set a boolean value in my view to YES when
menuWillOpen is called and back to NO when menuWillClose is called.
When the value is changed, I call setNeedsDisplay on the view.
--Lieven
_______________________________________________
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