• 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: Programmatically highlighting an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically highlighting an NSMenuItem


  • Subject: Re: Programmatically highlighting an NSMenuItem
  • From: vincent habchi <email@hidden>
  • Date: Thu, 8 Jul 2010 21:16:29 +0200

Le 8 juil. 2010 à 18:57, augusto callejas a écrit :

> yes i know its not a real menu, but given it mostly behaves like one,
> i was trying to use existing functionality without having to rewrite the menu-ing system.

As far as I know, you cannot use menu to do what you seek to achieve. You would lose focus on the NSTextField you use to type and that would be strange.

Don't forget to set the backgroundColor of your custom NSView to clearColor and setOpaque to no.

Vincent_______________________________________________

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: 
 >Programmatically highlighting an NSMenuItem (was: Building a Spotlight-like custom NSMenu with an embedded NSSearchField) (From: augusto callejas <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Graham Cox <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Kyle Sluder <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Graham Cox <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Graham Cox <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: augusto callejas <email@hidden>)

  • Prev by Date: Re: Sanity Check
  • Next by Date: Re: setting focus on NSSearchField in status bar menu item
  • Previous by thread: Re: Programmatically highlighting an NSMenuItem
  • Next by thread: How to catch [NSEvent dealloc]?
  • Index(es):
    • Date
    • Thread