Rua,
This won't work with an instance of the custom view in the toolbar.
A workaround would be to use a borderless (Custom / No Border) NSBox instead of
a custom view. This is probably the most straightforward fix.
There is some more info in this older post to the list:
Thank you Joey!
This most certainly works a treat.
cheers
Rua HM.
On 30/11/2010, at 10:59 AM, Joey Hagedorn wrote:
Rua,
This won't work with an instance of the custom view in the toolbar.
A workaround would be to use a borderless (Custom / No Border) NSBox instead
of a custom
Any suggestions on how to do this?
I simply want to use a bunch of controls, grouped via a custom view, in a
toolbar, such that the controls form a single toolbar item (for add/remove),
but the individual controls respond to mouse, draw, etc as normal.
Is this not possible?
thanks
Rua HM.
On
On 23/11/2010, at 10:02 AM, Rua Haszard Morris wrote:
Is this not possible?
Yes, it's possible. But your question is too open-ended. What have you tried,
what doesn't perform as expected?
--Graham
___
Cocoa-dev mailing list
What I have tried:
- new window NIB file
- add a toolbar
- add a custom view to the nib
- add controls to the custom view - a button, textfield, etc, tweak layout to
taste
- drag the custom view to the toolbar customise sheet (i.e. the allowed items
area)
- it looks like the view content will
I would like to add an item to my window's toolbar that is a custom view
containing other standard views. For example a popup button and a static text
field. If possible I would like to do this in interface builder, without
implementing NSToolbarDelegate.
So to clarify..
I have a window with