This is EmbeddedGraphic.h in view mode; [Download] [Up]
// EmbeddedGraphic.h
//
// a simple cell subclass that can be placed into a text object
//
// You may freely copy, distribute, and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to its
// fitness for any particular use.
#import <appkit/appkit.h>
@interface EmbeddedGraphic:Cell //Should be a cell subclass
{
id image;
char *fileName;
}
- setFile:(const char *)theFile;
- calcCellSize:(NXSize *)theSize;
- drawSelf:(const NXRect *)rect inView:view;
- highlight:(const NXRect *)rect inView:view lit:(BOOL)flag;
- readRichText:(NXStream *)stream forView:view ;
- writeRichText:(NXStream *)stream forView:view;
- (BOOL)trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)rect ofView:view;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.