From 868950e873f38523e25cedc645bc1b6153cb83b6 Mon Sep 17 00:00:00 2001 From: michael starke Date: Thu, 19 Sep 2013 00:06:29 +0200 Subject: [PATCH] Upgraded project to XCode 5 Fixed warnings in XCode 5 --- MacPass.xcodeproj/project.pbxproj | 12 +++-- .../xcshareddata/xcschemes/MacPass.xcscheme | 2 +- MacPass/Base.lproj/InspectorView.xib | 53 ++++++++++++++----- MacPass/KPKNode+IconImage.m | 3 -- MacPass/MPAttachmentTableViewDelegate.m | 1 + MacPass/MPCustomFieldTableViewDelegate.m | 1 + MacPass/MPEntryContextMenuDelegate.m | 1 + MacPass/MPEntryInspectorViewController.h | 9 ++++ MacPass/MPOutlineContextMenuDelegate.m | 1 + 9 files changed, 62 insertions(+), 21 deletions(-) diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 40924325..376ba048 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -1685,7 +1685,7 @@ isa = PBXProject; attributes = { CLASSPREFIX = MP; - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0500; ORGANIZATIONNAME = "HicknHack Software GmbH"; }; buildConfigurationList = 4C77E35C15B84A240093A587 /* Build configuration list for PBXProject "MacPass" */; @@ -2138,9 +2138,10 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -2157,7 +2158,9 @@ GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2/**"; MACOSX_DEPLOYMENT_TARGET = 10.8; @@ -2171,9 +2174,10 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -2184,7 +2188,9 @@ GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2/**"; MACOSX_DEPLOYMENT_TARGET = 10.8; diff --git a/MacPass.xcodeproj/xcshareddata/xcschemes/MacPass.xcscheme b/MacPass.xcodeproj/xcshareddata/xcschemes/MacPass.xcscheme index 82d6dd66..d878443e 100644 --- a/MacPass.xcodeproj/xcshareddata/xcschemes/MacPass.xcscheme +++ b/MacPass.xcodeproj/xcshareddata/xcschemes/MacPass.xcscheme @@ -1,6 +1,6 @@ 1080 - 12E55 - 3084 + 12F37 + 4510 1187.39 626.00 com.apple.InterfaceBuilder.CocoaPlugin - 3084 + 4510 IBNSLayoutConstraint @@ -42,7 +42,7 @@ NSApplication - + 268 @@ -127,7 +127,6 @@ 268 {{20, 2}, {42, 25}} - _NS:22 YES @@ -155,17 +154,16 @@ - 12 + 268 {{0, 30}, {278, 369}} - _NS:9 2 - 256 + 274 {278, 369} @@ -245,7 +243,6 @@ {278, 443} - _NS:9 NSView @@ -355,6 +352,7 @@ 9 40 3 + NO @@ -371,6 +369,7 @@ 9 40 3 + NO @@ -384,9 +383,10 @@ 1000 - 8 + 0 29 3 + NO @@ -400,9 +400,10 @@ 1000 - 8 + 0 29 3 + NO @@ -419,6 +420,7 @@ 9 40 3 + NO @@ -435,6 +437,7 @@ 9 40 3 + NO @@ -451,6 +454,7 @@ 6 24 2 + NO @@ -467,6 +471,7 @@ 3 9 3 + NO @@ -480,9 +485,10 @@ 1000 - 8 + 0 29 3 + NO @@ -496,9 +502,10 @@ 1000 - 8 + 0 29 3 + NO @@ -515,6 +522,7 @@ 9 40 3 + NO @@ -531,6 +539,7 @@ 3 9 3 + NO @@ -605,6 +614,7 @@ 5 22 2 + NO @@ -618,9 +628,10 @@ 1000 - 8 + 0 29 3 + NO @@ -637,6 +648,7 @@ 9 40 1 + NO @@ -694,6 +706,7 @@ 5 22 2 + NO @@ -710,6 +723,7 @@ 5 22 2 + NO @@ -748,6 +762,7 @@ 3 9 1 + NO @@ -764,6 +779,7 @@ 9 40 1 + NO @@ -953,6 +969,15 @@ 0 IBCocoaFramework + YES + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 + + YES 3 diff --git a/MacPass/KPKNode+IconImage.m b/MacPass/KPKNode+IconImage.m index 136946bc..b51b3dae 100644 --- a/MacPass/KPKNode+IconImage.m +++ b/MacPass/KPKNode+IconImage.m @@ -15,9 +15,6 @@ @implementation KPKNode (IconImage) - (NSImage *)iconImage { - if([self respondsToSelector:@selector(customIconUuid)]) { - // find the custom icon - } if(self.customIcon) { return self.customIcon.image; } diff --git a/MacPass/MPAttachmentTableViewDelegate.m b/MacPass/MPAttachmentTableViewDelegate.m index ea76a13e..52c8974f 100644 --- a/MacPass/MPAttachmentTableViewDelegate.m +++ b/MacPass/MPAttachmentTableViewDelegate.m @@ -9,6 +9,7 @@ #import "MPAttachmentTableViewDelegate.h" #import "MPDocument.h" +#import "MPEntryInspectorViewController.h" #import "MPSelectedAttachmentTableCellView.h" #import "KPKEntry.h" diff --git a/MacPass/MPCustomFieldTableViewDelegate.m b/MacPass/MPCustomFieldTableViewDelegate.m index 5a747347..2ceca77d 100644 --- a/MacPass/MPCustomFieldTableViewDelegate.m +++ b/MacPass/MPCustomFieldTableViewDelegate.m @@ -9,6 +9,7 @@ #import "MPCustomFieldTableViewDelegate.h" #import "MPDocument.h" #import "MPCustomFieldTableCellView.h" +#import "MPEntryInspectorViewController.h" #import "KPKEntry.h" #import "KPKAttribute.h" diff --git a/MacPass/MPEntryContextMenuDelegate.m b/MacPass/MPEntryContextMenuDelegate.m index 309c1036..42d224b6 100644 --- a/MacPass/MPEntryContextMenuDelegate.m +++ b/MacPass/MPEntryContextMenuDelegate.m @@ -7,6 +7,7 @@ // #import "MPEntryContextMenuDelegate.h" +#import "MPEntryViewController.h" #import "MPDocument.h" #import "KPKEntry.h" diff --git a/MacPass/MPEntryInspectorViewController.h b/MacPass/MPEntryInspectorViewController.h index 03a3249b..89628422 100644 --- a/MacPass/MPEntryInspectorViewController.h +++ b/MacPass/MPEntryInspectorViewController.h @@ -36,4 +36,13 @@ - (void)setupBindings:(MPDocument *)document; +- (IBAction)saveAttachment:(id)sender; +- (IBAction)addAttachment:(id)sender; +- (IBAction)removeAttachment:(id)sender; + +- (IBAction)addCustomField:(id)sender; +- (IBAction)removeCustomField:(id)sender; + + + @end diff --git a/MacPass/MPOutlineContextMenuDelegate.m b/MacPass/MPOutlineContextMenuDelegate.m index e98636c7..8b82fae2 100644 --- a/MacPass/MPOutlineContextMenuDelegate.m +++ b/MacPass/MPOutlineContextMenuDelegate.m @@ -8,6 +8,7 @@ #import "MPOutlineContextMenuDelegate.h" #import "MPOutlineViewController.h" +#import "MPDocumentWindowController.h" #import "MPDocument.h"