Re: nspopbutton short title possible?
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