From 90377d24955e5787baf42fbf4e2f1bcfeb78da31 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Fri, 15 Aug 2008 16:47:41 +0200 Subject: [PATCH] About dialog box shows "Custom Version" --- src/MacVim/MMApplication.m | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/MacVim/MMApplication.m b/src/MacVim/MMApplication.m index a21540e282..10c69d9d62 100644 --- a/src/MacVim/MMApplication.m +++ b/src/MacVim/MMApplication.m @@ -66,4 +66,21 @@ [super sendEvent:event]; } + +- (void)orderFrontStandardAboutPanel:(id)sender +{ + NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey: + @"CFBundleVersion"]; + NSString *marketingVersion = [[NSBundle mainBundle] + objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; + NSString *title = [NSString stringWithFormat: + @"Custom Version %@ (%@)", marketingVersion, version]; + + [self orderFrontStandardAboutPanelWithOptions: + [NSDictionary dictionaryWithObjectsAndKeys: + @"", @"Version", + title, @"ApplicationVersion", + nil]]; +} + @end