make copyright come from info plist and not hard-coded in the gorm file

This commit is contained in:
Riccardo Mottola 2021-12-14 13:00:46 +01:00
parent 7e64e50cda
commit beb93d83e3
3 changed files with 13 additions and 3 deletions

View file

@ -1,11 +1,19 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
FirstResponder = {
Actions = (
"showInfoWindow:"
);
Super = NSObject;
};
PCInfoController = {
Actions = (
"showInfoWindow:"
);
Outlets = (
infoWindow,
versionField
versionField,
copyrightField
);
Super = NSObject;
};

View file

@ -1,7 +1,7 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2001 Free Software Foundation
Copyright (C) 2001-2021 Free Software Foundation
This file is part of GNUstep.
@ -28,7 +28,8 @@
@interface PCInfoController : NSObject
{
id infoWindow;
id versionField;
IBOutlet NSTextField* versionField;
IBOutlet NSTextField* copyrightField;
NSDictionary *infoDict;
}

View file

@ -43,6 +43,7 @@
return nil;
}
[versionField setStringValue:[NSString stringWithFormat:@"Version %@", [infoDict objectForKey:@"ApplicationRelease"]]];
[copyrightField setStringValue:[infoDict objectForKey:@"Copyright"]];
[infoWindow center];
}