ASOC: Get contentView

Am successfully setting contentView like this:

tell myWindow to setContentView:myView1

Want to be able to get myWindow’s current contentView (myView1, myView2, etc.) as text; however the below does not work:

set theCurrentView to myWindow's contentView() as text

However, in objC, this works:

What is the best way to get the current contentView as text?


Hi,

the content view is an instance of NSView, it cannot be coerced to text.
If you want to identify different views, assign tag numbers to them