• 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: Set focus on NSView in an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Set focus on NSView in an NSMenuItem (From: Pierre Bernard <email@hidden>)
 >Re: Set focus on NSView in an NSMenuItem (From: Pierre Bernard <email@hidden>)
 >Re: Set focus on NSView in an NSMenuItem (From: Ron Fleckner <email@hidden>)
 >Re: Set focus on NSView in an NSMenuItem (From: Pierre Bernard <email@hidden>)
 >Re: Set focus on NSView in an NSMenuItem (From: Lieven Dekeyser <email@hidden>)

  • Prev by Date: Re: NSShadow changes on 10.5.2?
  • Next by Date: Multiple classes instantiated in nib
  • Previous by thread: Re: Set focus on NSView in an NSMenuItem
  • Next by thread: Re: Set focus on NSView in an NSMenuItem
  • Index(es):
    • Date
    • Thread