• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nspopbutton short title possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nspopbutton short title possible?


  • Subject: Re: nspopbutton short title possible?
  • From: "Rick C." <email@hidden>
  • Date: Tue, 19 Jun 2012 14:08:30 +0800

Yeah that's what I was missing thanks for the time!


On Jun 19, 2012, at 1:44 PM, Kyle Sluder wrote:

> Take a look at -[NSPopUpButtonCell setUsesItemFromMenu:].
>
> --Kyle Sluder
>
> On Jun 18, 2012, at 10:20 PM, "Rick C." <email@hidden> 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 (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

References: 
 >nspopbutton short title possible? (From: "Rick C." <email@hidden>)
 >Re: nspopbutton short title possible? (From: Graham Cox <email@hidden>)
 >Re: nspopbutton short title possible? (From: "Rick C." <email@hidden>)
 >Re: nspopbutton short title possible? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: nspopbutton short title possible?
  • Next by Date: Calculating lineFragment for NSTextContainer
  • Previous by thread: Re: nspopbutton short title possible?
  • Next by thread: Re: nspopbutton short title possible?
  • Index(es):
    • Date
    • Thread