The main.m file follows:
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <Renaissance/Renaissance.h>
@interface MyDelegate : NSObject
{}
- (void) applicationDidFinishLaunching: (NSNotification *)not;
@end
@implementation MyDelegate : NSObject
- (void) applicationDidFinishLaunching: (NSNotification *)not;
{
[NSBundle loadGSMarkupNamed: @"LPT_Interface" owner: self];
}
@end
int main (int argc, const char **argv)
{
CREATE_AUTORELEASE_POOL (pool);
MyDelegate *delegate;
[NSApplication sharedApplication];
delegate = [MyDelegate new];
[NSApp setDelegate: delegate];
#ifdef GNUSTEP
[NSBundle loadGSMarkupNamed: @"Menu-GNUstep" owner: delegate];
#else
[NSBundle loadGSMarkupNamed: @"Menu-OSX" owner: delegate];
#endif
RELEASE (pool);
return NSApplicationMain (argc, argv);
}