Set launcher window title and version string from config.h header.

Subversion-branch: /launcher
Subversion-revision: 1756
This commit is contained in:
Simon Howard 2009-12-25 20:33:21 +00:00
parent 6833b3e308
commit 894287c1c7
5 changed files with 40 additions and 1 deletions

View file

@ -6,6 +6,8 @@
@interface LauncherManager : NSObject @interface LauncherManager : NSObject
{ {
id commandLineArguments; id commandLineArguments;
id packageLabel;
id launcherWindow;
IWADController *iwadController; IWADController *iwadController;
} }

View file

@ -2,6 +2,7 @@
#include <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#include "LauncherManager.h" #include "LauncherManager.h"
#include "config.h"
@implementation LauncherManager @implementation LauncherManager
@ -20,4 +21,11 @@
{ {
} }
- (void) awakeFromNib
{
[self->packageLabel setStringValue: @PACKAGE_STRING];
[self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
}
@end @end

View file

@ -54,7 +54,9 @@
); );
Outlets = ( Outlets = (
commandLineArguments, commandLineArguments,
iwadController iwadController,
packageLabel,
launcherWindow
); );
Super = NSObject; Super = NSObject;
}; };

Binary file not shown.

27
config.h Normal file
View file

@ -0,0 +1,27 @@
// Dummy config.h for developing launcher. Eventually, the launcher
// will include the top-level config.h for the program.
/* Name of package */
#define PACKAGE "cocoa-doom"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "fraggle@gmail.com"
/* Define to the full name of this package. */
#define PACKAGE_NAME "Cocoa Doom"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "Cocoa Doom 1.2.1"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "cocoa-doom"
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.2.1"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "1.2.1"