Article View: comp.sys.next.programmer
Article #1349Re: Questions on inherited Text object in a ScrollView
From: Ray Spalding
Date: Thu, 08 Oct 1992 21:14
Date: Thu, 08 Oct 1992 21:14
28 lines
1819 bytes
1819 bytes
In article <73182@apple.Apple.COM> gordie@duts.ccc.amdahl.com writes: > 3) How can I use IB to set up a ScrollView containing my inherited CText > object, rather than the Text object it usually contains? I started > reading about Palettes, but I'm not sure if this is the way to go. Rather than use the scrolling text palette object, try this: Drag in a CustomView from the Views palette. Change the class of the CustomView to your CText subclass. Then, choose "Group in ScrollView" from the "Layout" menu. > 1) Can I set the Text object's delegate from within IB? If you set things up as above, this should be no problem. Just select the ScrollView, then double-click your CText View. "delegate" should appear in the Connections inspector. > 2) How can I set an object outlet variable to a ScrollView object > from within IB (it always sets it to the Text object within the > ScrollView). I had no trouble with this. Just be careful where you drag to. As you control-drag into the ScrollView, first the ScrollView itself will be highlighted; release here to connect to it. If you continue dragging, the Text object becomes highlighted. -- Ray Spalding, Office of Information Technology Georgia Institute of Technology, Atlanta Georgia, 30332-0715 Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Technical Details
Message-ID:
<70514@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!prism!xray.gatech.edu!cc100aaReferences:
<73182@apple.Apple.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!prism!xray.gatech.edu!cc100aa From: cc100aa@xray.gatech.edu (Ray Spalding) Newsgroups: comp.sys.next.programmer Subject: Re: Questions on inherited Text object in a ScrollView Keywords: Text object ScrollView Interface Builder IB inherit Message-ID: <70514@hydra.gatech.EDU> Date: 8 Oct 92 21:14:13 GMT References: <73182@apple.Apple.COM> Sender: news@prism.gatech.EDU Organization: Georgia Institute of Technology Lines: 28