From: Michael J. Rubinsky Date: Fri, 3 Sep 2010 22:45:27 +0000 (-0400) Subject: Add versioning and display on plugin sheet X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b70a62d163965a2cd81f57a051ce439923330380;p=horde.git Add versioning and display on plugin sheet --- diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.h b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.h index 33be5eee0..542c559aa 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.h +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.h @@ -51,6 +51,7 @@ IBOutlet NSImageView *defaultImageView; IBOutlet NSButton *mNewGalleryButton; IBOutlet NSPopUpButton *mServersPopUp; + IBOutlet NSTextField *mVersionString; // New Server sheet IBOutlet NSWindow *newServerSheet; diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m index cae05609e..f68328623 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m @@ -159,7 +159,10 @@ NSString * const TURAnselServerVersionKey = @"version"; - (void)willBeActivated { - // noop + // Version/build + NSDictionary *info = [[NSBundle bundleForClass: [self class]] infoDictionary]; + NSString *versionString = [NSString stringWithFormat:@"%@ %@", [info objectForKey:@"CFBundleName"], [info objectForKey:@"CFBundleVersion"]]; + [mVersionString setStringValue: versionString]; } - (void)willBeDeactivated diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj index 6db81666b..70be64ed0 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.xcodeproj/project.pbxproj @@ -241,6 +241,9 @@ /* Begin PBXProject section */ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; + attributes = { + ORGANIZATIONNAME = "The Horde Project"; + }; buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "ApertureToAnselExportPlugin" */; compatibilityVersion = "Xcode 3.1"; hasScannedForEncodings = 1; @@ -362,6 +365,7 @@ isa = XCBuildConfiguration; buildSettings = { ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CURRENT_PROJECT_VERSION = 1.0; FRAMEWORK_SEARCH_PATHS = "/Library/Frameworks//**"; GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_PREPROCESSOR_DEFINITIONS = DEBUG; @@ -370,8 +374,10 @@ MACOSX_DEPLOYMENT_TARGET = 10.6; ONLY_ACTIVE_ARCH = NO; PREBINDING = NO; + PRODUCT_NAME = Aperture2Ansel; SDKROOT = macosx10.6; VALID_ARCHS = "x86 x86_64"; + VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; @@ -379,14 +385,17 @@ isa = XCBuildConfiguration; buildSettings = { ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CURRENT_PROJECT_VERSION = 1.0; FRAMEWORK_SEARCH_PATHS = "/Library/Frameworks//**"; GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.6; PREBINDING = NO; + PRODUCT_NAME = Aperture2Ansel; SDKROOT = macosx10.6; VALID_ARCHS = "x86 x86_64"; + VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; diff --git a/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/designable.nib b/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/designable.nib index c9f3f05a3..4a2fbaa1b 100644 --- a/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/designable.nib +++ b/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/designable.nib @@ -11,8 +11,7 @@ 1.1 - - + com.apple.imagekit.ibplugin @@ -30,7 +29,7 @@ NSApplication - + 268 @@ -392,6 +391,22 @@ 0 NO + + + 268 + {{15, 17}, {227, 14}} + + YES + + 68288064 + 272761856 + Aperture2Ansel + + + + + + {{1, 1}, {487, 256}} @@ -445,6 +460,7 @@ {528, 309} + NSView @@ -465,6 +481,7 @@ 268 {{124, 159}, {311, 22}} + YES -1804468671 @@ -487,6 +504,7 @@ 268 {{17, 161}, {102, 17}} + YES 68288064 @@ -503,6 +521,7 @@ 268 {{124, 127}, {311, 22}} + YES -1804468671 @@ -520,6 +539,7 @@ 268 {{124, 95}, {311, 22}} + YES 343014976 @@ -540,6 +560,7 @@ 268 {{17, 129}, {67, 17}} + YES 68288064 @@ -556,6 +577,7 @@ 268 {{17, 97}, {67, 17}} + YES 68288064 @@ -572,6 +594,7 @@ 268 {{17, 193}, {102, 17}} + YES 68288064 @@ -588,6 +611,7 @@ 268 {{124, 191}, {311, 22}} + YES -1804468671 @@ -605,6 +629,7 @@ 268 {{345, 12}, {96, 32}} + YES 67239424 @@ -625,6 +650,7 @@ 268 {{244, 12}, {96, 32}} + YES 67239424 @@ -645,6 +671,7 @@ 268 {{17, 69}, {67, 17}} + YES 68288064 @@ -661,6 +688,7 @@ 268 {{121, 63}, {100, 26}} + YES -2076049856 @@ -714,6 +742,7 @@ {455, 230} + {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -728,7 +757,7 @@ {1.79769e+308, 1.79769e+308} - + 256 @@ -736,7 +765,6 @@ 268 {{568, 28}, {96, 28}} - YES 67239424 @@ -765,14 +793,12 @@ 256 {626, 247} - YES 256 {626, 17} - @@ -780,7 +806,6 @@ 256 {{627, 0}, {16, 17}} - @@ -895,7 +920,6 @@ {{1, 17}, {626, 247}} - @@ -906,7 +930,6 @@ 256 {{627, 17}, {15, 247}} - _doScroller: 1 @@ -917,7 +940,6 @@ 256 {{1, 264}, {626, 15}} - 1 _doScroller: @@ -931,7 +953,6 @@ {{1, 0}, {626, 17}} - @@ -941,14 +962,12 @@ {{20, 60}, {643, 280}} - 50 - QSAAAEEgAABBmAAAQZgAAA @@ -956,7 +975,6 @@ 268 {{15, 28}, {96, 28}} - YES 67239424 @@ -974,8 +992,6 @@ {679, 358} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -998,6 +1014,7 @@ 268 {{370, 12}, {96, 32}} + YES 67239424 @@ -1181,6 +1198,7 @@ {423, 251} + NO YES YES @@ -1197,6 +1215,7 @@ {{1, 1}, {423, 251}} + @@ -1207,6 +1226,7 @@ 256 {{424, 1}, {15, 251}} + _doScroller: 1 @@ -1217,6 +1237,7 @@ 256 {{1, 252}, {423, 15}} + 1 _doScroller: @@ -1225,6 +1246,7 @@ {{20, 60}, {440, 268}} + 50 @@ -1235,6 +1257,7 @@ {480, 327} + {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -1485,6 +1508,14 @@ 423 + + + mVersionString + + + + 426 + @@ -1878,6 +1909,7 @@ + @@ -2077,6 +2109,19 @@ + + 424 + + + + + + + + 425 + + + @@ -2182,13 +2227,14 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin {{639, 898}, {110, 43}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{531, 790}, {528, 309}} com.apple.InterfaceBuilder.CocoaPlugin @@ -2225,7 +2271,7 @@ - 423 + 426 @@ -2233,7 +2279,6 @@ ApertureToAnselExportPlugin NSObject - id id id id @@ -2241,6 +2286,32 @@ id id id + id + + + IKImageBrowserView + NSButton + NSImageView + NSView + NSComboBox + NSView + NSPopUpButton + NSButton + NSButton + NSTextField + NSSecureTextField + NSTextField + NSTextField + NSPopUpButton + NSTextField + NSWindow + NSWindow + NSPanel + NSTableView + NSView + NSProgressIndicator + NSTextField + NSButton IBProjectSource diff --git a/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/keyedobjects.nib b/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/keyedobjects.nib index 7c3ca87c6..36d7f5149 100644 Binary files a/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/keyedobjects.nib and b/ApertureToAnselExportPlugin/English.lproj/ApertureToAnselExportPlugin.nib/keyedobjects.nib differ diff --git a/ApertureToAnselExportPlugin/English.lproj/InfoPlist.strings b/ApertureToAnselExportPlugin/English.lproj/InfoPlist.strings index 1d61a2fc2..3de298fc0 100644 Binary files a/ApertureToAnselExportPlugin/English.lproj/InfoPlist.strings and b/ApertureToAnselExportPlugin/English.lproj/InfoPlist.strings differ diff --git a/ApertureToAnselExportPlugin/Info.plist b/ApertureToAnselExportPlugin/Info.plist index 931ef3899..713610865 100644 --- a/ApertureToAnselExportPlugin/Info.plist +++ b/ApertureToAnselExportPlugin/Info.plist @@ -11,15 +11,15 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - ApertureToAnselExportPlugin + Aperture2Ansel CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + 1.0.0 CFBundleSignature ???? CFBundleVersion - 1 + 1.0.0.d1 LSHasLocalizedDisplayName NSPrincipalClass