Custom View


I googled some hours without find an example.

I would like to set the contents of a custom view with a particular view (custom view).

My custom view is inside a window.
When user choose a popup (choice 0, choice 1, choice 2…) the custom view is filled with custom view “choice_1”, “choice_2”…

I try a lot of syntax, but no one works.

It should be something like:

tell window “myWin”
set contents of view “masterChoice” to contents of view “choice_0”
– or set contents of view “masterChoice” to view “choice_0”
end tell

Somebody has suggestions?