News Software Download Buy Now About Us Developers Contact
software TOC | PREV | NEXT
//
// InfoAndHelp.h
//

#import <AppKit/AppKit.h>

@interface InfoAndHelp : NSObject
{
    id helpPanel;
    id infoWindow;
    id whirlHelpPanel;
}

// always ask for the single class instance:
+ sharedHelp;

- (void)orderFrontHelp:(id)sender;
- (void)orderFrontInfo:(id)sender;
- (void)orderFrontWhirlHelp:(id)sender;
@end

//
// InfoAndHelp.m
//

#import "InfoAndHelp.h"

@implementation InfoAndHelp

static InfoAndHelp *info = nil;

+ sharedHelp
{
    if (info == nil) info = [[self alloc] init];
    return info;
}

- init
{
    [super init];
    [NSBundle loadNibNamed:@"Info.nib" owner:self];
    return self;
}

- (void)orderFrontHelp:(id)sender
{
    [helpPanel makeKeyAndOrderFront:self];
}

- (void)orderFrontInfo:(id)sender
{
    [infoWindow makeKeyAndOrderFront:self];
}

- (void)orderFrontWhirlHelp:(id)sender
{
    [whirlHelpPanel makeKeyAndOrderFront:self];
}

@end
TOC | PREV | NEXT
Created by Stone Design's Create on 4/30/1998
©2000 Stone Design top