VisualAge displays messages in the System Transcript window. If it gives the message
#<method> should not reference <class>
you'll need to add a prerequisite to the application on which you're working.
Add as the prerequisite the application containing the class named in the message.
For example, suppose your application contains a method myMethod that refers to the part AnyView, and you get the message
#myMethod: should not reference AnyView
To fix this, add the application containing AnyView to the list of prerequisites for your application.