Re: nspopbutton short title possible?
Re: nspopbutton short title possible?
- Subject: Re: nspopbutton short title possible?
- From: Graham Cox <email@hidden>
- Date: Tue, 19 Jun 2012 14:46:13 +1000
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 (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