• 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: Thu, 21 Jun 2012 07:57:21 +0800

Yeah it's even here:

If the receiver displays a pop-up menu, this method changes the current item to be the item with the specified title, adding a new item by that name if one does not already exist.

But when setUsesItemFromMenu: is set to NO I can make my own item so it works.  The last I did this was with a segmented control and I remember setLabel: seemed to work just fine so this caught me by surprise too.  But all is well now and thanks for the help!

rc



On Jun 20, 2012, at 11:22 AM, Graham Cox wrote:

>
> On 19/06/2012, at 3:20 PM, Rick C. 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.
>
>
>
> So it does - that's unexpected. In fact, that's really a strange design choice right there... but I guess it's been that way a long time so we can hardly complain. Glad you found a solution.
>
> --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: Graham Cox <email@hidden>)

  • Prev by Date: Re: Intercepting spawned URL requests from UIWebView and caching the response
  • Next by Date: "best practice"
  • Previous by thread: Re: nspopbutton short title possible?
  • Next by thread: Calculating lineFragment for NSTextContainer
  • Index(es):
    • Date
    • Thread