Permalink
Browse files

using bundle version string rather than a defined constant

  • Loading branch information...
1 parent 771545a commit 764f2a1020af44d71e5b1ea84562d2fb9fed2d16 @rcarlsen committed Apr 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −1 Classes/Controllers/AboutPanelController.m
  2. +0 −2 ShairPortMenu_Prefix.pch
View
4 Classes/Controllers/AboutPanelController.m
@@ -47,7 +47,9 @@ - (void)windowDidLoad
{
[super windowDidLoad];
- [self.versionLabel setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Version: %@","Version label"),kSPMVersion]];
+ [self.versionLabel setStringValue:[NSString stringWithFormat:
+ NSLocalizedString(@"Version: %@","Version label"),
+ [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]]];
// set up the about text:
NSBundle *bundle = [NSBundle mainBundle];
View
2 ShairPortMenu_Prefix.pch
@@ -4,6 +4,4 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
-
- #define kSPMVersion @"0.1"
#endif

0 comments on commit 764f2a1

Please sign in to comment.