Article View: comp.sys.next.programmer
Article #1356Re: Questions on inherited Text object in a ScrollView
From: Juan Collas
Date: Thu, 08 Oct 1992 23:50
Date: Thu, 08 Oct 1992 23:50
53 lines
2468 bytes
2468 bytes
In article <73182@apple.Apple.COM> gordie@duts.ccc.amdahl.com (Gordie Freedman) writes: > > So here are my questions: > > 1) Can I set the Text object's delegate from within IB? (Using ctrl-mouse-drag). > I don't think so. I've just done it at runtime in my class. Would be nice ... > 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'm trying to do this so I can create a normal ScrollView > from within IB and than in the init code of the .nib's owner I can > do a setDocument (I think that is the call) on the ScrollView. I need to > set one of the "file's owner" object's instance variables to the ScrollView > so I can reference the ScrollView later. (On a related note, can I get > the ScrollView from the Window object, which I can connect)? > Easy. Control-Drag from the object to the edge of the scrollview. You should see a black line encompassing the scoller and text object. That's the scrollview. If you move into the text object, only it will have a black line around it and the scroller will be excluded. That's the text object itself. > 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. > It's the way to go. Otherwise, you'll have to replace the default Text object with your CText object at runtime. > 4) Is there some way for the Text object's delegate to get notification > when the alignment or underline attribute is changed? (I think I also > don't get color changes either, so I need that too). > Sorry, can't help you there. The documentation isn't too clear on attributes and the 'touched' button. -- - Juan Collas, ICTV
Technical Details
Message-ID:
<1992Oct8.235051.17767@ictv.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ictv!usenetReferences:
<73182@apple.Apple.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ictv!usenet From: jcollas@ictv.com (Juan Collas) Subject: Re: Questions on inherited Text object in a ScrollView Message-ID: <1992Oct8.235051.17767@ictv.com> Sender: usenet@ictv.com Reply-To: jcollas@ictv.com Organization: ICTV, Santa Clara, CA (408) 562-9200 References: <73182@apple.Apple.COM> Date: Thu, 8 Oct 1992 23:50:51 GMT Lines: 53