Re: NSToolbar + NSPopupButton-Action menu: View is clipping its content
Re: NSToolbar + NSPopupButton-Action menu: View is clipping its content
- Subject: Re: NSToolbar + NSPopupButton-Action menu: View is clipping its content
- From: Erik Stainsby <email@hidden>
- Date: Tue, 21 Aug 2012 12:34:43 -0700
On 2012-08-21, at 11:02 AM, Markus Spoettl <email@hidden> wrote:
> On 8/21/12 5:00 PM, Keary Suska wrote:
>> On Aug 21, 2012, at 3:33 AM, Markus Spoettl wrote:
>>
>>> I have a toolbar with an toolbar item that contains a NSPopupButton based
>>> action menu. No matter how wide I make the popup button, compiling the XIB
>>> always produces a "View is clipping its content" warning.
>>>
>>> The warning is wrong, nothing gets clipped (at least not as far as I can
>>> tell).
>>>
>>> This has been going on forever (since at least 3.2). Is there a trick to
>>> get rid of that?
>>>
>>> Currently using Xcode 4.4.1
>>
>> If you weren't already aware, these are compile-time warnings, so you need to
>> Otherwise, is there an image involved?
>
> Yes, as it's NSPopupButton acting as action button (like in the Finder toolbar). The first item is a hidden, image-only menu item entry.
>
>> Are you using a custom font?
>
> No, everything is left as default setup.
>
>> Have you resized the height from
>> the system default?
>
> You can't do that with NSPopupButtons.
>
> Markus
Perhaps then you could consider using a standard round button on the toolbar and place a menu over it in code when it is activated. This removes any mystery of the effect of the menu items, and it will afford you the option of resizing the button to fit the toolbar's requirements.
~ Erik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden