How do I add a toolbar?

Dear MacScripters,

I would still like to create a toolbar that is like the native Macintosh toolbar of the most applications.
I guessed it must have to do with a title view and some partial views.
I want to include such a toolbar in my software. I would really apreciate any help.

I already got so far, that I created a toolbar with toolbar items and window.
But I want the view to be dinamically changed when clicked on the specified item.

Made this a seperate thread.

Have you read the documentation yet? (Toolbar documentation)

Also, if you’d like to save your self some typing when making code for toolbar items, then you may want to try this: Generate code for AS Studio toolbar items.

Yes, l read the whole documentation three times.
But I did not found anything about the event,
when a toolbar item is selected and the window
resizes to the minimum of the contents of
a special view.

The only thing that is now required is
how to connect the different views
or maybe content views to the apropriate
toolbar items, so that the view “resizes”
in the view of the user.

PLEASE HELP
Thank you soooo much in advance !!!