ftp.nice.ch/Attic/openStep/tools/calculators/BMI.2.0.w.I.bs.tgz#/BMI.2.0.w.NT.bs/Source/MenuObject.m

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

#import "MenuObject.h"

@implementation MenuObject

- (void)applicationDidFinishLaunching:(NSNotification *)notification
// In order for your object to receive this notification make sure that
// your object is a delegate or "File's Owner" in IB.
// Connected from "File's Owner" to MenuObject in this case.
{

       //NSApplication *theApplication = [notification object];
       //[NSApp activateIgnoringOtherApps:YES]; // activate the application      	
       [NSBundle loadNibNamed:@"Imperial.nib" owner:self];
}


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

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

- (void)MoreInfo:(id)sender
{

    [NSBundle loadNibNamed:@"MoreInfo.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.