Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- Subject: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- From: Lee Ann Rucker <email@hidden>
- Date: Fri, 16 Oct 2015 22:10:31 +0000
- Thread-topic: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
On Oct 16, 2015, at 1:57 PM, Richard Charles <email@hidden> wrote:
>
>> On Oct 16, 2015, at 1:24 AM, Jacek Oleksy <email@hidden> wrote:
>>
>> NSToolbar is not a view, it is a class designed to "provide the
>> mechanism for a titled window to display a toolbar just below its
>> title bar" (from the doc). I need to display the toolbar in different
>> place, that is why I need to use custom NSView (please correct me if I
>> am wrong…).
>
> Yes, you will need to roll your own toolbar.
Having rolled my own toolbar in the distant past (10.5 IIRC), I cannot recommend NSStackView more (10.9+) - all the layout adjustment you’d have to handle yourself is done for you. It’s even quite easy to have an automatic overflow menu - there’s an Apple sample that does that, though I can’t remember which one.
_______________________________________________
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