Path: utzoo!news-server.csri.toronto.edu!rutgers!bagate!dsinc!unix.cis.pitt.edu!zaphod.mps.ohio-state.edu!ceres.physics.uiowa.edu!news.iastate.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!liberte From: liberte@ncsa.uiuc.edu (Daniel LaLiberte) Newsgroups: comp.sys.next Subject: Re: Help: IB and ScrollView Message-ID: Date: 14 Mar 91 16:03:34 GMT References: <12MAR91212432@uazhe0.physics.arizona.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Distribution: usa,local Organization: University of Illinois, Urbana-Champaign, NCSA Lines: 29 In-Reply-To: zazula@uazhe0.physics.arizona.edu's message of 12 MAR 91 21:24:32 > From: zazula@uazhe0.physics.arizona.edu (RALPH ZAZULA) > I want to do something like: > > [ScrollView setText:"here is some text"]; > > but I don't know the name of the IB provided ScrollView. I just figured this out yesterday. It wasnt obvious from the limited documentation. First you have to create your own class by using the subclass item in the Class window. Which class it is a subclass of depends on what you want to do with it. Then create an instance of your class and add an outlet in the Class Inspector which will be used to name the scrollview (getting the right display up for this can be a trick). Then make a connection from this outlet by going to the connections display, selecting the outlet and control dragging from your class instance to the ScrollView. Then unparse your class and edit the source to add methods that have access to the ScrollView via your named outlet. I havent figured out when exactly the outlet is set to the object it is connected to. Dan LaLiberte National Center for Supercomputing Applications liberte@ncsa.uiuc.edu