ftp.nice.ch/pub/next/text/etext/eText5-0.93.Source.NIHS.tar.gz#/eText5/eTLiteral.subproj/eTISINDEXLiteral.m

This is eTISINDEXLiteral.m in view mode; [Download] [Up]

//This is a separate file to allow link ordering(prinicpalClass got screwed up)
#import "eTLiteral.h"
@implementation eTISINDEXLiteral
+ toolAwake:theApp
{
	char        buf[MAXPATHLEN];
	NXBundle	*bundle;
	id 			icon=nil;

	bundle = [NXBundle bundleForClass:[eTISINDEXLiteral class]];
	if ([bundle getPath:buf 
		forResource:"eTISINDEXLiteralIcon" ofType:"tiff"] ) {
		icon=[[NXImage alloc] initFromFile:buf];
		[icon setName:"eTISINDEXLiteralIcon"];
	} else {
		NXLogError("Image not found: eTISINDEXLiteralIcon");
	}	
	[theApp   registerAnnotation: [eTISINDEXLiteral class] 
							name: "eTISINDEXLiteral--HTML"
					RTFDirective: "eTISINDEXLiteral"	// should never be used
					   menuLabel: "HTML/ISINDEX tag"
						 menuKey: '\0'
						menuIcon: (NXImage *) nil];
	return self;
}

- initFromPboard:thePB inDoc:theDoc linked:(BOOL) linked
{
	[super initFromPboard:thePB inDoc: theDoc linked:linked];
	[self setTheRep:"<ISINDEX>\n" forFormat:HTMD_FMT]; 
	//self->isa = [eTLiteral class];	// promotion
	[self setImageComponent:
		[eTImageComponent newImageNamed:"eTISINDEXLiteralIcon"]];
	[imageComponent setDoc:theDoc];
	return self;
}
@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.