• 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: Kyle Sluder <email@hidden>
  • Date: Thu, 8 Jul 2010 10:02:22 -0700

On Thu, Jul 8, 2010 at 9:57 AM, augusto callejas
<email@hidden> wrote:
> 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.

Given that you're going to want to do a significant amount of custom
work, it's probably better for your own sanity that you can't work
from within NSMenu to do this. I don't imagine dispatching Cocoa
events from within a view-based menu item to be a fun time.

If it helps, +[NSMenu selectedMenuItemColor] is a magic color that
gives you the 10.5 and later gradient appearance. So at least you
don't have to reimplement that yourself.

--Kyle Sluder
_______________________________________________

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: Programmatically highlighting an NSMenuItem
  • Next by Date: Re: Programmatically highlighting an NSMenuItem
  • Previous by thread: Re: Programmatically highlighting an NSMenuItem
  • Next by thread: Re: Programmatically highlighting an NSMenuItem
  • Index(es):
    • Date
    • Thread