/usr/share/doc/renaissance-doc/examples/Examples/Applications/Templates/Standard/main.m is in renaissance-doc 0.9.0-4build7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /*
* This file is part of Renaissance's Template Standard Application.
* You can use it as a starting point for your own programs, no matter
* what their copyright is. You can remove this notice and replace it
* with your own. This file is in the public domain.
*/
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <Renaissance/Renaissance.h>
/* Dummy function pointer needed to link Renaissance.dll on Windows. */
int (*linkRenaissanceIn)(int, const char **) = GSMarkupApplicationMain;
#include "MainController.h"
int main (int argc, const char **argv, char** env)
{
CREATE_AUTORELEASE_POOL (pool);
[NSApplication sharedApplication];
[NSApp setDelegate: [MainController new]];
#ifdef GNUSTEP
[NSBundle loadGSMarkupNamed: @"MainMenu-GNUstep" owner: [NSApp delegate]];
#else
[NSBundle loadGSMarkupNamed: @"MainMenu-OSX" owner: [NSApp delegate]];
#endif
RELEASE (pool);
return NSApplicationMain (argc, argv);
}
|