Re: Icons in menus
Re: Icons in menus
- Subject: Re: Icons in menus
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 9 Sep 2005 00:15:46 +0200
On jeudi, septembre 8, 2005, at 07:59 PM, Mike Abdullah wrote:
I have a popup button in my app, and wish to add icons to the various
menu items. However, I can't figure out how to do this exactly. Is
it possible to create a new menu item and image at the same time (the
icons are located in the usual place in the app's bundle by the way),
No.
or do I have to create the menu item and the add the icon?
Yes.
See setImage: in NSMenuItem.
You can get the menuItem multiple ways in a NSPopUpButton, choose your
flavor in the documentation.
To get your "icon": myImage=[NSImage imageNamed:@"theNameOfMyIcon"];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden