Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!orstcs!prism!mcgredo From: mcgredo@prism.cs.orst.edu (Don McGregor) Newsgroups: comp.sys.next Subject: Re: How to get graphics into scrolling textvew in IB Message-ID: <1991Jun17.164400.133@lynx.CS.ORST.EDU> Date: 17 Jun 91 16:44:00 GMT References: <1157.285b7b92@amy.skidmore.edu> Sender: @lynx.CS.ORST.EDU Organization: YoyoDyne Propulsion Systems Lines: 21 Nntp-Posting-Host: prism.cs.orst.edu In article <1157.285b7b92@amy.skidmore.edu> tholland@amy.skidmore.edu writes: >Does anyone know how to get graphics into a scrolling text view >in IB ? Can I get the scrolling text views to support rtf ? > That's covered in the Text object documentation. The scrolling text IS an rtf object. You can turn on the rtf capabilities with a setMonoFont:NO message sent to the text object (which is the docview of the scrollview). With that message you can do all the usual selecting and font reseting if you drag in the font menu. You can get spellchecking and an online dictionary by dragging in the services menu. You can get graphics into the text object, but that takes a little more doing. The graphic object usually is a subclass of Cell. It has to respond to several messages, specified in the docs. You place it in the Text object by sending a replaceSelWithCell: message. Don McGregor | "I too seek the light, so long as it tastes mcgredo@prism.cs.orst.edu| great and is not too filling."