🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by Howard Brenner Wed, 02 Sep 1992 16:38
Reading in .rtfd files
#1023
Author: Howard Brenner
Date: Wed, 02 Sep 1992 16:38
6 lines
624 bytes
Does anyone know how to read in an .rtfd file (files produced by edit when  
graphics are involved).  I tried loading in the TXT.rtf file in the .rtfd  
directory and it loaded in the text but not the graphics.  Any help would  
be much appreciated.

thanks!
Re: Reading in .rtfd files
#855
Author: Cecil Bloch
Date: Tue, 08 Sep 1992 17:45
25 lines
1638 bytes
In article <BtyM8D.GEt@monitor.com> howard@monitor.com (Howard Brenner)  
writes:
> Does anyone know how to read in an .rtfd file (files produced by edit  
when  
> graphics are involved).  I tried loading in the TXT.rtf file in the  
rtfd  
> directory and it loaded in the text but not the graphics. 

(1) Look at the Text class documentation - "METHODS IMPLEMENTED BY AN  
EMBEDDED GRAPHIC OBJECT", towards the end of Text.rtf.

(2) Look at MiniExamples/ImageText, files GraphicImage.m and FileImage.m  
in particular.

Edit inserts a directive "NextGraphic" (I think) into a rich text file to  
signal the presence of an embedded graphic. Unless you have/write a custom  
cell or object that can respond to that, the quick-fix solution is to use  
the MiniExample App "ImageText" rather than Edit to embed the graphic in  
an rtf and then use GraphicImage.h/.m in your App. Remember also to  
register the directive, so the Text object knows where to go when it hits  
the embedded directive:
[Text registerDirective:"GraphicImage" forClass:[GraphicImage class]];

P.S. If anyone else out there knows a better way to handle this I too  
would appreciate some guidance...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads