philwzo@cs.mcgill.ca (Philippe WIECZOREK) (02/28/91)
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 --