ftp.nice.ch/Attic/openStep/games/AstroGC.2.0.w.I.b.tgz#/AstroGC.2.0.w.NT/Source/SignsObject.m

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

#import "SignsObject.h"

@implementation SignsObject

// Global Variable
NSString *fileName;



- (void)LoadFile:(id)sender 
{

	NSString *thePath;
	NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];

	if (thePath = [thisBundle pathForResource:fileName ofType:@"rtfd"]) 
		{
		[[TheSV documentView] setString:thePath];
		[[TheSV documentView] readRTFDFromFile:thePath];
		[TheWin setTitle:fileName];
		[TheWin orderFront:sender];
		}
}



- (void)Aquarius:(id)sender
{
	fileName = [NSString stringWithCString:"Aquarius"];
	[self LoadFile:self];
}


- (void)Aries:(id)sender
{
	fileName = [NSString stringWithCString:"Aries"];
	[self LoadFile:self];
}


- (void)Cancer:(id)sender
{
	fileName = [NSString stringWithCString:"Cancer"];
	[self LoadFile:self];
}



- (void)Capricorn:(id)sender
{
	fileName = [NSString stringWithCString:"Capricorn"];
	[self LoadFile:self];
}



- (void)Chinese:(id)sender
{
	fileName = [NSString stringWithCString:"Chinese"];
	[self LoadFile:self];
}



- (void)Compatibility:(id)sender
{
	fileName = [NSString stringWithCString:"Compatibility"];
	[self LoadFile:self];
}


- (void)Gemini:(id)sender
{
	fileName = [NSString stringWithCString:"Gemini"];
	[self LoadFile:self];
}



- (void)Leo:(id)sender
{
	fileName = [NSString stringWithCString:"Leo"];
	[self LoadFile:self];
}


- (void)Libra:(id)sender
{
	fileName = [NSString stringWithCString:"Libra"];
	[self LoadFile:self];
}



- (void)Pisces:(id)sender
{

	fileName = [NSString stringWithCString:"Pisces"];
	[self LoadFile:self];
}


- (void)Planets:(id)sender
{

	fileName = [NSString stringWithCString:"Planets"];
        [self LoadFile:self];
}




- (void)PrintTheWin:(id)sender
// This method will print the WHOLE panel to the printer
{

	[[TheSV documentView] print:self];
}


- (void)Sagittarius:(id)sender
{
	fileName = [NSString stringWithCString:"Sagittarius"];
	[self LoadFile:self];
}


- (void)Scorpio:(id)sender
{
	fileName = [NSString stringWithCString:"Scorpio"];
	[self LoadFile:self];
}


- (void)Taurus:(id)sender
{
	fileName = [NSString stringWithCString:"Taurus"];
	[self LoadFile:self];
}


- (void)Virgo:(id)sender
{
	fileName = [NSString stringWithCString:"Virgo"];
	[self LoadFile:self];
}


- (void)MoreInfo:(id)sender
{
        [NSBundle loadNibNamed:@"MoreInfo.nib" owner:self]; // load nib
}


- (void)InfoPanel:(id)sender
{
        [NSBundle loadNibNamed:@"InfoPanel.nib" owner:self]; // load nib
}


- (void)HelpAndIntro:(id)sender
{
	[NSBundle loadNibNamed:@"HelpIntro.nib" owner:self]; // load nib
}



@end

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