diff --git a/mac/Keyman4MacIM/Keyman4MacIM.xcodeproj/project.pbxproj b/mac/Keyman4MacIM/Keyman4MacIM.xcodeproj/project.pbxproj index 053d78aa52..10e32913fa 100644 --- a/mac/Keyman4MacIM/Keyman4MacIM.xcodeproj/project.pbxproj +++ b/mac/Keyman4MacIM/Keyman4MacIM.xcodeproj/project.pbxproj @@ -32,7 +32,6 @@ 98BF92441BF01CBE0002126A /* KMAboutWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 98BF92421BF01CBE0002126A /* KMAboutWindowController.m */; }; 98BF92451BF01CBE0002126A /* KMAboutWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 98BF92431BF01CBE0002126A /* KMAboutWindowController.xib */; }; 98BF92471BF01D890002126A /* image.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 98BF92461BF01D890002126A /* image.jpg */; }; - 98BF92491BF0216F0002126A /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 98BF92481BF0216F0002126A /* logo.png */; }; 98BF924F1BF02DC20002126A /* KMBarView.m in Sources */ = {isa = PBXBuildFile; fileRef = 98BF924E1BF02DC20002126A /* KMBarView.m */; }; 98BF92521BF03D4D0002126A /* KMAboutBGView.m in Sources */ = {isa = PBXBuildFile; fileRef = 98BF92511BF03D4D0002126A /* KMAboutBGView.m */; }; 98BF92541BF040A50002126A /* title.png in Resources */ = {isa = PBXBuildFile; fileRef = 98BF92531BF040A50002126A /* title.png */; }; @@ -76,6 +75,7 @@ E28914D92028A78C0048E71E /* OCMock.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = E28914D82028A78C0048E71E /* OCMock.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; E29F22F4201A59B1005EA234 /* KMInputMethodBrowserClientEventHandlerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E29F22F3201A59B1005EA234 /* KMInputMethodBrowserClientEventHandlerTests.m */; }; E2D5529D20DD8E0200D77CFB /* LegacyTestClient.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D5529C20DD8E0200D77CFB /* LegacyTestClient.m */; }; + E2EE23972142E2AD00EAA98C /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = E2EE23962142E2AC00EAA98C /* logo.png */; }; E61216E78B7F03FE755687F1 /* libPods-KeymanTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E7FB3417C46A01721AD32D0 /* libPods-KeymanTests.a */; }; /* End PBXBuildFile section */ @@ -168,7 +168,6 @@ 98BF92421BF01CBE0002126A /* KMAboutWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KMAboutWindowController.m; sourceTree = ""; }; 98BF92431BF01CBE0002126A /* KMAboutWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMAboutWindowController.xib; sourceTree = ""; }; 98BF92461BF01D890002126A /* image.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image.jpg; sourceTree = ""; }; - 98BF92481BF0216F0002126A /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; 98BF924D1BF02DC20002126A /* KMBarView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMBarView.h; sourceTree = ""; }; 98BF924E1BF02DC20002126A /* KMBarView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KMBarView.m; sourceTree = ""; }; 98BF92501BF03D4D0002126A /* KMAboutBGView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMAboutBGView.h; sourceTree = ""; }; @@ -205,7 +204,7 @@ E213601D2142D7BF00A043B7 /* keyman-88.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "keyman-88.png"; sourceTree = ""; }; E21799031FC5B74D00F2D66A /* KMInputMethodEventHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KMInputMethodEventHandler.h; sourceTree = ""; }; E21799041FC5B7BC00F2D66A /* KMInputMethodEventHandler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KMInputMethodEventHandler.m; sourceTree = ""; }; - E21E645720C04EA7000D6274 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = logo.png; path = Keyman4MacIM/KMAboutWindow/logo.png; sourceTree = SOURCE_ROOT; }; + E21E645720C04EA7000D6274 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = logo.png; path = Keyman4MacIM/KMConfiguration/logo.png; sourceTree = SOURCE_ROOT; }; E22020F3200505EF00B74FAC /* KMInputMethodSafariClientEventHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KMInputMethodSafariClientEventHandler.h; sourceTree = ""; }; E22020F5200506F300B74FAC /* KMInputMethodSafariClientEventHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KMInputMethodSafariClientEventHandler.m; sourceTree = ""; }; E22020F920050D6300B74FAC /* KMInputMethodBrowserClientEventHandlerProtected.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMInputMethodBrowserClientEventHandlerProtected.h; sourceTree = ""; }; @@ -229,6 +228,7 @@ E2C92D4720B46CEA00742A7D /* KeymanEngine4Mac.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = KeymanEngine4Mac.framework.dSYM; path = Keyman4MacIM/Frameworks/KeymanEngine4Mac.framework.dSYM; sourceTree = ""; }; E2D5529B20DD8D6100D77CFB /* LegacyTestClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LegacyTestClient.h; sourceTree = ""; }; E2D5529C20DD8E0200D77CFB /* LegacyTestClient.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LegacyTestClient.m; sourceTree = ""; }; + E2EE23962142E2AC00EAA98C /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = logo.png; path = Keyman4MacIM/KMConfiguration/logo.png; sourceTree = ""; }; FA67C64E3D2743D2BCF46ED1 /* Pods-KeymanTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KeymanTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KeymanTests/Pods-KeymanTests.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -275,6 +275,7 @@ 983246EC1A9E8E860010B90C /* KMConfiguration */ = { isa = PBXGroup; children = ( + E2EE23962142E2AC00EAA98C /* logo.png */, 9832472C1A9EABC70010B90C /* KMConfigColumn1CellView.h */, 9832472D1A9EABC70010B90C /* KMConfigColumn1CellView.m */, 983247B01A9EB9690010B90C /* KMConfigColumn3CellView.h */, @@ -430,7 +431,6 @@ E213601D2142D7BF00A043B7 /* keyman-88.png */, E23380FA21407AA100B90591 /* SILInBlue76.png */, 98BF92461BF01D890002126A /* image.jpg */, - 98BF92481BF0216F0002126A /* logo.png */, 98BF92531BF040A50002126A /* title.png */, ); path = KMAboutWindow; @@ -610,7 +610,6 @@ 9874C3221B536847000BB543 /* keyman.png in Resources */, 989C9C131A7876DE00A20425 /* Images.xcassets in Resources */, 98E2CEA11A92C39C00AE2455 /* InfoPlist.strings in Resources */, - 98BF92491BF0216F0002126A /* logo.png in Resources */, E21E645820C04EA8000D6274 /* logo.png in Resources */, E23380FB21407AA100B90591 /* SILInBlue76.png in Resources */, 9874C3211B536847000BB543 /* info.png in Resources */, @@ -619,6 +618,7 @@ 98FE10641B4DEE5600525F54 /* KMInfoWindowController.xib in Resources */, E213601E2142D7C000A043B7 /* keyman-88.png in Resources */, 98BF92471BF01D890002126A /* image.jpg in Resources */, + E2EE23972142E2AD00EAA98C /* logo.png in Resources */, 98BF92451BF01CBE0002126A /* KMAboutWindowController.xib in Resources */, 98F3C8941A8D739500F675E3 /* preferences.xib in Resources */, 9800EC5A1C02940300BF0FB5 /* keyman-for-mac-os-license.html in Resources */, diff --git a/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.m b/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.m index 1a6fd7f11e..14491e3908 100644 --- a/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.m +++ b/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.m @@ -28,14 +28,14 @@ [self.window setBackgroundColor:[NSColor whiteColor]]; NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; NSString *build = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey]; - [self.versionLabel setStringValue:[NSString stringWithFormat:@"Version %@ (build %@)", version, build]]; - - NSMutableString *copyrightInfo = [[NSMutableString alloc] initWithString: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"NSHumanReadableCopyright"]]; - NSRange copyrightSymbolLocation = [copyrightInfo rangeOfString:@"©"]; - if (copyrightSymbolLocation.location > 0 && copyrightSymbolLocation.length == 1) - { - [copyrightInfo insertString:@"\n" atIndex:copyrightSymbolLocation.location]; + if ([version isEqualToString:build]) { + [self.versionLabel setStringValue:[NSString stringWithFormat:@"Version %@", version]]; } + else { + [self.versionLabel setStringValue:[NSString stringWithFormat:@"Version %@ (build %@)", version, build]]; + } + + NSMutableString *copyrightInfo = [[NSMutableString alloc] initWithString: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"NSHumanReadableCopyright"]]; [self.copyrightLabel setStringValue:copyrightInfo]; NSTrackingArea *trackingArea = [[NSTrackingArea alloc] initWithRect:[self.licenseButton bounds] diff --git a/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.xib b/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.xib index 95c2f5d7e0..bfc57e988e 100644 --- a/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.xib +++ b/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/KMAboutWindowController.xib @@ -19,44 +19,31 @@ - + - + - - + + - - + + - - + - - - + + + + + + + + + + + + + - - - + + - - - - - - - - - - + + + + + + + + - + + + - - - - - - - + + + + + + + + + + - + + + + diff --git a/mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/logo.png b/mac/Keyman4MacIM/Keyman4MacIM/KMConfiguration/logo.png similarity index 100% rename from mac/Keyman4MacIM/Keyman4MacIM/KMAboutWindow/logo.png rename to mac/Keyman4MacIM/Keyman4MacIM/KMConfiguration/logo.png