From 9f9f2a476ac8da4311760d2ee133bebb3031e642 Mon Sep 17 00:00:00 2001 From: Angelo Failla Date: Tue, 1 Oct 2013 19:04:55 +0200 Subject: [PATCH] added version string to about window --- yubiswitch/AboutWindowController.h | 6 +++++- yubiswitch/AboutWindowController.m | 4 +++- yubiswitch/AboutWindowController.xib | 10 ++++++++++ yubiswitch/yubiswitch-Info.plist | 4 ++-- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/yubiswitch/AboutWindowController.h b/yubiswitch/AboutWindowController.h index 85c859e..7a59a9a 100644 --- a/yubiswitch/AboutWindowController.h +++ b/yubiswitch/AboutWindowController.h @@ -22,6 +22,10 @@ #import -@interface AboutWindowController : NSWindowController +@interface AboutWindowController : NSWindowController { + IBOutlet NSTextField* versionLabel; +} + + @end diff --git a/yubiswitch/AboutWindowController.m b/yubiswitch/AboutWindowController.m index 2087871..839f59d 100644 --- a/yubiswitch/AboutWindowController.m +++ b/yubiswitch/AboutWindowController.m @@ -40,7 +40,9 @@ - (id)initWithWindow:(NSWindow *)window - (void)windowDidLoad { [super windowDidLoad]; - + [versionLabel + setStringValue:[[NSBundle mainBundle] + objectForInfoDictionaryKey:@"CFBundleVersion"]]; } @end diff --git a/yubiswitch/AboutWindowController.xib b/yubiswitch/AboutWindowController.xib index e034637..d96edf0 100644 --- a/yubiswitch/AboutWindowController.xib +++ b/yubiswitch/AboutWindowController.xib @@ -7,6 +7,7 @@ + @@ -41,6 +42,15 @@ http://github.com/pallotron/yubiswitch + + + + + + + + + diff --git a/yubiswitch/yubiswitch-Info.plist b/yubiswitch/yubiswitch-Info.plist index 5902931..a142879 100644 --- a/yubiswitch/yubiswitch-Info.plist +++ b/yubiswitch/yubiswitch-Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 1 + 0.2 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion @@ -29,7 +29,7 @@ LSUIElement NSHumanReadableCopyright - Copyright (C) 2013 Angelo "pallotron" Failla <pallotron@freaknet.org> -- GNUGPL v3 + Copyright (C) 2013 Angelo "pallotron" Failla <pallotron@freaknet.org> -- GNUGPL v3 NSMainNibFile MainMenu NSPrincipalClass