/usr/include/GNUstep/Renaissance/GSMarkupApplicationMain.h is in librenaissance0-dev 0.9.0-4build4.
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /* -*-objc-*-
GSMarkupApplicationMain.h
Copyright (C) 2002 Free Software Foundation, Inc.
Author: Pete French <pete@twisted.org.uk>
Date: July 2003
This file is part of GNUstep Renaissance
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _GNUstep_H_GSMarkupApplicationMain
#define _GNUstep_H_GSMarkupApplicationMain
/*
* GSMarkupApplicationMain() is intended as a replacement for
* NSApplicationMain() so that a main markup file is loaded at startup
* as opposed to a main nib file.
*
* GSMarkupApplicationMain() is usually invoked in your main()
* function; it gets the GSMainMarkupFile from the info dictionary in
* the main bundle (this reads from the Info.plist file in the
* application bundle), and loads it from the main bundle (with the
* owner being the shared application object). Then, it calls
* NSApplicationMain().
*
* If you decide to use this function, your typical main() function
* should look like the following:
*
* int main (int argc, const char **argv)
* {
* return GSMarkupApplicationMain (argc, argv);
* }
*
* You then add
*
* xxx_MAIN_MARKUP_FILE = MainFile.gsmarkup
*
* to your GNUmakefile. If you are not using gnustep-make, you should
* set the key 'GSMarkupMainFile' in the application info dictionary
* to the name of the markup file you want to be automatically loaded.
*
* Please note the parallel with NSApplicationMain() and loading the main
* nib file in an application.
*
* This function is included here and not in the Markup/ subproject
* because it depends on the GUI library, while the Markup/ subproject
* can also be built as a stand-alone, non-GUI library.
*/
/* TODO - exporting the function properly under Windows. */
int GSMarkupApplicationMain (int argc, const char **argv);
#endif /* _GNUstep_H_GSMarkupApplicationMain */
|