About dialog box shows "Custom Version"

This commit is contained in:
Bjorn Winckler
2008-08-15 16:47:41 +02:00
parent 8b385ca122
commit 90377d2495
+17
View File
@@ -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