Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!spool.mu.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!quiche!philwzo From: philwzo@cs.mcgill.ca (Philippe WIECZOREK) Newsgroups: comp.sys.next Subject: Rich Text Format Graphics in Scrollview. Keywords: Rich Text Format, Graphics, TIFF, Scrollview, Help. Message-ID: <1991Feb27.161928.2637@cs.mcgill.ca> Date: 27 Feb 91 16:19:28 GMT Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS, McGill University, Montreal, Canada Lines: 36 Originator: philwzo@homer Is a scroll view able to display graphics using the rich text format ? I did not manage to do that. I use the following code: id myScrollView; - setHelpFile:(const char *)filename { NXStream *stream; if ( ( stream = NXMapFile ( filename, NX_READONLY ) ) != NULL ) { [[myScrollView docView] readRichText:stream]; [[myScrollView docView] scrollPoint:&origin]; NXCloseMemory ( stream,NX_FREEBUFFER ); } return self; } 'filename' is a .rtfd, which contains the text (TXT.rtf) and the graphics (*.tiff). Instead of displaying the graphic, (pasted in Edit, so it is a .tiff), it writes the rtf command : paste 1 1.tiff < Any idea on it ? Thanx. Phil. -- philwzo@cs.mcgill.ca --