On Oct 16, 2015, at 1:57 PM, Richard Charles <rcharles...@gmail.com> wrote:

> 
>> On Oct 16, 2015, at 1:24 AM, Jacek Oleksy <jole...@opera.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to