Take a look at -[NSPopUpButtonCell setUsesItemFromMenu:]. --Kyle Sluder
On Jun 18, 2012, at 10:20 PM, "Rick C." <rickcort...@gmail.com> wrote: > That's what I'm doing and it does change the title, but when I do it will > create a new menu item with the new name that I assigned. It also says this > in the docs. But there must be a way right am I missing something? > > > On Jun 19, 2012, at 12:46 PM, Graham Cox wrote: > >> >> On 19/06/2012, at 2:24 PM, Rick C. wrote: >> >>> Hi again, >>> >>> Is it not possible somehow to have the title in an nspopbutton to show a >>> shortened version of one of the menu items? So for example if I have a >>> menu item with the title "Advanced Mode" when choosing it I would like to >>> set the title that shows on the button to "Advanced" but leave the menu >>> item unchanged. Currently it will add a new menu item named "Advanced." I >>> have done this before with segmented control but it would be easier to use >>> a popup button if possible. Thanks, >> >> >> When you select your advanced mode within the controller, just set the >> -title: of the popup button to what you want. This will replace the title >> which is automatically assigned from the menu item. >> >> --Graham >> >> > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com