Re: Programmatically highlighting an NSMenuItem
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