home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Utilities / BMI-5.0-w / MenuObject.m < prev    next >
Encoding:
Text File  |  1997-01-26  |  831 b   |  35 lines

  1. #import "MenuObject.h"
  2.  
  3. @implementation MenuObject
  4.  
  5. - (void)applicationDidFinishLaunching:(NSNotification *)notification
  6. // In order for your object to receive this notification make sure that
  7. // your object is a delegate or "File's Owner" in IB.
  8. // Connected from "File's Owner" to MenuObject in this case.
  9. {
  10.  
  11.        //NSApplication *theApplication = [notification object];
  12.        //[NSApp activateIgnoringOtherApps:YES]; // activate the application          
  13.        [NSBundle loadNibNamed:@"Imperial.nib" owner:self];
  14. }
  15.  
  16.  
  17. - (void)Imperial:(id)sender
  18. {
  19.     [NSBundle loadNibNamed:@"Imperial.nib" owner:self]; // load nib
  20. }
  21.  
  22. - (void)Metric:(id)sender
  23. {
  24.     [NSBundle loadNibNamed:@"Metric.nib" owner:self]; // load nib
  25. }
  26.  
  27. - (void)MoreInfo:(id)sender
  28. {
  29.  
  30.     [NSBundle loadNibNamed:@"MoreInfo.nib" owner:self]; // load nib
  31.     
  32. }
  33.  
  34. @end
  35.