
#import "InfoManager.h"

@implementation InfoManager

- infoPanel
{
   if(!infoPanel) {
      id bundle;
      char path[MAXPATHLEN+1];
         
      bundle = [NXBundle bundleForClass:[self class]];
      if([bundle getPath:path forResource:"InfoPanel" ofType:"nib"]) {
         [NXApp loadNibFile:path owner:self];
      } else {
         NXRunAlertPanel("Error", "Can't locate InfoPanel.nib", NULL, NULL, NULL);
      }
   }
   return infoPanel;
}

- showPanel:sender
{
   [[self infoPanel] makeKeyAndOrderFront:nil];
   return self;
}

@end
