mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-13 14:13:02 +00:00
make copyright come from info plist and not hard-coded in the gorm file
This commit is contained in:
parent
7e64e50cda
commit
beb93d83e3
3 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
return nil;
|
||||
}
|
||||
[versionField setStringValue:[NSString stringWithFormat:@"Version %@", [infoDict objectForKey:@"ApplicationRelease"]]];
|
||||
[copyrightField setStringValue:[infoDict objectForKey:@"Copyright"]];
|
||||
[infoWindow center];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue