Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit b97d0a5

Browse files
committed
Updated to Xcode 5 / iOS 7 preview
1 parent 88c7205 commit b97d0a5

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Baker.xcodeproj/*.mode1v3
33
Baker.xcodeproj/*.pbxuser
44
Baker.xcodeproj/xcuserdata
55
Baker.xcodeproj/project.xcworkspace/xcuserdata
6+
Baker.xcodeproj/project.xcworkspace/xcshareddata
67
build/

Baker.xcodeproj/project.pbxproj

+10-3
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
ABAFB57E15AB9A2E002FA498 /* Project object */ = {
446446
isa = PBXProject;
447447
attributes = {
448-
LastUpgradeCheck = 0460;
448+
LastUpgradeCheck = 0500;
449449
};
450450
buildConfigurationList = ABAFB58115AB9A2E002FA498 /* Build configuration list for PBXProject "Baker" */;
451451
compatibilityVersion = "Xcode 3.2";
@@ -556,8 +556,9 @@
556556
isa = XCBuildConfiguration;
557557
buildSettings = {
558558
ALWAYS_SEARCH_USER_PATHS = NO;
559-
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
559+
CLANG_WARN_BOOL_CONVERSION = YES;
560560
CLANG_WARN_CONSTANT_CONVERSION = YES;
561+
CLANG_WARN_EMPTY_BODY = YES;
561562
CLANG_WARN_ENUM_CONVERSION = YES;
562563
CLANG_WARN_INT_CONVERSION = YES;
563564
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -573,9 +574,12 @@
573574
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
574575
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
575576
GCC_WARN_ABOUT_RETURN_TYPE = YES;
577+
GCC_WARN_UNDECLARED_SELECTOR = YES;
576578
GCC_WARN_UNINITIALIZED_AUTOS = YES;
579+
GCC_WARN_UNUSED_FUNCTION = YES;
577580
GCC_WARN_UNUSED_VARIABLE = YES;
578581
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
582+
ONLY_ACTIVE_ARCH = YES;
579583
SDKROOT = iphoneos;
580584
TARGETED_DEVICE_FAMILY = "1,2";
581585
};
@@ -585,8 +589,9 @@
585589
isa = XCBuildConfiguration;
586590
buildSettings = {
587591
ALWAYS_SEARCH_USER_PATHS = NO;
588-
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
592+
CLANG_WARN_BOOL_CONVERSION = YES;
589593
CLANG_WARN_CONSTANT_CONVERSION = YES;
594+
CLANG_WARN_EMPTY_BODY = YES;
590595
CLANG_WARN_ENUM_CONVERSION = YES;
591596
CLANG_WARN_INT_CONVERSION = YES;
592597
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -595,7 +600,9 @@
595600
GCC_C_LANGUAGE_STANDARD = gnu99;
596601
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
597602
GCC_WARN_ABOUT_RETURN_TYPE = YES;
603+
GCC_WARN_UNDECLARED_SELECTOR = YES;
598604
GCC_WARN_UNINITIALIZED_AUTOS = YES;
605+
GCC_WARN_UNUSED_FUNCTION = YES;
599606
GCC_WARN_UNUSED_VARIABLE = YES;
600607
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
601608
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";

BakerShelf/ShelfViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ - (void)viewDidAppear:(BOOL)animated
221221
[self handleBookToBeProcessed];
222222
}
223223
}
224-
- (NSInteger)supportedInterfaceOrientations
224+
- (NSUInteger)supportedInterfaceOrientations
225225
{
226226
return UIInterfaceOrientationMaskAll;
227227
}

BakerShelf/UICustomNavigationController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ - (id)updateNavigationBar
5858

5959
return self;
6060
}
61-
- (NSInteger)supportedInterfaceOrientations
61+
- (NSUInteger)supportedInterfaceOrientations
6262
{
6363
return [self.topViewController supportedInterfaceOrientations];
6464
}

BakerView/BakerViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
17731773
- (BOOL)shouldAutorotate {
17741774
return YES;
17751775
}
1776-
- (NSInteger)supportedInterfaceOrientations {
1776+
- (NSUInteger)supportedInterfaceOrientations {
17771777
if ([book.orientation isEqualToString:@"portrait"]) {
17781778
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
17791779
} else if ([book.orientation isEqualToString:@"landscape"]) {

0 commit comments

Comments
 (0)