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 a toolbar in an interface builder file.
I want to put a popup button and static text on the toolbar as a single item - 
I want them to be removeable/addable as a pair, and I want full control over 
their layout within the toolbar item.
I want to run the interface in IB using the Cocoa Simulator and see the popup 
button and text draw.

1 - Is this possible in Interface Builder? If so, can someone briefly outline 
the steps?

2 - If this is not possible in IB, how would this best  be implemented? If this 
is the case, can this work alongside configuring the toolbar in IB, or will the 
allowed items configured in IB be ignored at runtime? (This is why I'd prefer 
to do this fully in IB).

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 appear - the buttons are drawn in the 
allowed items area
- drag the custom item to the toolbar (so it is in the default set) - oh no, 
the buttons disappear
- simulate the interface - oh no, still no buttons!

I didn't find any confirmation that this is not possible in these previous 
threads..
http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg35450.html
http://www.cocoabuilder.com/archive/cocoa/282463-custom-view-in-toolbar.html

thanks for the help
Rua HM.

--
http://cartoonbeats.com_______________________________________________

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

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

Reply via email to