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 MyObject in this case.
{
// Activate the application
[NSApp activateIgnoringOtherApps:YES];
// Load nib
if (![NSBundle loadNibNamed:@"Regular" owner:self]) {
NSLog(@"Failed to load Regular.nib");
NSBeep();
return;
}
}
- (void)NewInverse:(id)sender
{
[NSBundle loadNibNamed:@"Inverse.nib" owner:self];
}
- (void)NewRegular:(id)sender
{
[NSBundle loadNibNamed:@"Regular.nib" owner:self];
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.