/*
 *     Generated by the NeXT Interface Builder.
 */

#import <stdlib.h>
#import "MenuManager.h"
#import <appkit/Window.h>
#import <appkit/Application.h>
#import "NObject.h"

void main(int argc, char *argv[])
{ // "NObject" objects don't cause the app
  // to terminate when they don't understand
  // something
    [NObject poseAs: objc_getClass("Object")] ;
    [[[NObject alloc] init] free] ;
    NXApp = [MenuManager new];
    [NXApp loadNibSection:"MenuManager.nib" owner:NXApp];
    [[NXApp mainMenu] setTitle: "CB"] ;
    if(argc == 1) // if no args,
      [NXApp open: NXApp] ; // come up with open panel
    else
      [NXApp openList: &argv[1]  path: NULL] ; // come up with args opened
    [[NXApp mainMenu] display] ;
    [NXApp run];
    [NXApp free];
    exit(0);
}
