Re: Overriding NSMenuItem's drawing
Re: Overriding NSMenuItem's drawing
- Subject: Re: Overriding NSMenuItem's drawing
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 17 Feb 2010 17:38:44 +0100
Le 17 févr. 2010 à 17:30, Tom Davie a écrit :
> I need an NSMenuItem that rather than drawing an NSImage in it's cell draws
> *part* of an NSImage, is it possible to override NSMenuItem's drawing in any
> way to achieve this? I don't see the relevant methods.
Use a View in your menu item:
http://developer.apple.com/mac/library/samplecode/MenuItemView/index.html#//apple_ref/doc/uid/DTS10004136
-- Jean-Daniel
_______________________________________________
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