home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Games / AstroGC-5.0-w / SignsObject.m < prev    next >
Encoding:
Text File  |  1997-06-13  |  2.5 KB  |  169 lines

  1. #import "SignsObject.h"
  2.  
  3. @implementation SignsObject
  4.  
  5. // Global Variable
  6. NSString *fileName;
  7.  
  8.  
  9.  
  10. - (void)LoadFile:(id)sender 
  11. {
  12.  
  13.     NSString *thePath;
  14.     NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
  15.  
  16.     if (thePath = [thisBundle pathForResource:fileName ofType:@"rtfd"]) 
  17.         {
  18.         [[TheSV documentView] setString:thePath];
  19.         [[TheSV documentView] readRTFDFromFile:thePath];
  20.         [TheWin setTitle:fileName];
  21.         [TheWin orderFront:sender];
  22.         }
  23. }
  24.  
  25.  
  26.  
  27. - (void)Aquarius:(id)sender
  28. {
  29.     fileName = [NSString stringWithCString:"Aquarius"];
  30.     [self LoadFile:self];
  31. }
  32.  
  33.  
  34. - (void)Aries:(id)sender
  35. {
  36.     fileName = [NSString stringWithCString:"Aries"];
  37.     [self LoadFile:self];
  38. }
  39.  
  40.  
  41. - (void)Cancer:(id)sender
  42. {
  43.     fileName = [NSString stringWithCString:"Cancer"];
  44.     [self LoadFile:self];
  45. }
  46.  
  47.  
  48.  
  49. - (void)Capricorn:(id)sender
  50. {
  51.     fileName = [NSString stringWithCString:"Capricorn"];
  52.     [self LoadFile:self];
  53. }
  54.  
  55.  
  56.  
  57. - (void)Chinese:(id)sender
  58. {
  59.     fileName = [NSString stringWithCString:"Chinese"];
  60.     [self LoadFile:self];
  61. }
  62.  
  63.  
  64.  
  65. - (void)Compatibility:(id)sender
  66. {
  67.     fileName = [NSString stringWithCString:"Compatibility"];
  68.     [self LoadFile:self];
  69. }
  70.  
  71.  
  72. - (void)Gemini:(id)sender
  73. {
  74.     fileName = [NSString stringWithCString:"Gemini"];
  75.     [self LoadFile:self];
  76. }
  77.  
  78.  
  79.  
  80. - (void)Leo:(id)sender
  81. {
  82.     fileName = [NSString stringWithCString:"Leo"];
  83.     [self LoadFile:self];
  84. }
  85.  
  86.  
  87. - (void)Libra:(id)sender
  88. {
  89.     fileName = [NSString stringWithCString:"Libra"];
  90.     [self LoadFile:self];
  91. }
  92.  
  93.  
  94.  
  95. - (void)Pisces:(id)sender
  96. {
  97.  
  98.     fileName = [NSString stringWithCString:"Pisces"];
  99.     [self LoadFile:self];
  100. }
  101.  
  102.  
  103. - (void)Planets:(id)sender
  104. {
  105.  
  106.     fileName = [NSString stringWithCString:"Planets"];
  107.         [self LoadFile:self];
  108. }
  109.  
  110.  
  111.  
  112.  
  113. - (void)PrintTheWin:(id)sender
  114. // This method will print the WHOLE panel to the printer
  115. {
  116.  
  117.     [[TheSV documentView] print:self];
  118. }
  119.  
  120.  
  121. - (void)Sagittarius:(id)sender
  122. {
  123.     fileName = [NSString stringWithCString:"Sagittarius"];
  124.     [self LoadFile:self];
  125. }
  126.  
  127.  
  128. - (void)Scorpio:(id)sender
  129. {
  130.     fileName = [NSString stringWithCString:"Scorpio"];
  131.     [self LoadFile:self];
  132. }
  133.  
  134.  
  135. - (void)Taurus:(id)sender
  136. {
  137.     fileName = [NSString stringWithCString:"Taurus"];
  138.     [self LoadFile:self];
  139. }
  140.  
  141.  
  142. - (void)Virgo:(id)sender
  143. {
  144.     fileName = [NSString stringWithCString:"Virgo"];
  145.     [self LoadFile:self];
  146. }
  147.  
  148.  
  149. - (void)MoreInfo:(id)sender
  150. {
  151.         [NSBundle loadNibNamed:@"MoreInfo.nib" owner:self]; // load nib
  152. }
  153.  
  154.  
  155. - (void)InfoPanel:(id)sender
  156. {
  157.         [NSBundle loadNibNamed:@"InfoPanel.nib" owner:self]; // load nib
  158. }
  159.  
  160.  
  161. - (void)HelpAndIntro:(id)sender
  162. {
  163.     [NSBundle loadNibNamed:@"HelpIntro.nib" owner:self]; // load nib
  164. }
  165.  
  166.  
  167.  
  168. @end
  169.