forked from nicklockwood/iRate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick Lockwood
committed
Feb 26, 2012
1 parent
aafcb6a
commit ede6834
Showing
15 changed files
with
1,118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.charcoaldesign.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSMainNibFile</key> | ||
<string>MainWindow</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,280 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
1D3623260D0F684500981E51 /* iRateAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* iRateAppDelegate.m */; }; | ||
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; | ||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; | ||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; | ||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; }; | ||
2899E5220DE3E06400AC0155 /* iRateViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* iRateViewController.xib */; }; | ||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; | ||
28D7ACF80DDB3853001CB0EB /* iRateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* iRateViewController.m */; }; | ||
B205F2191462A82C00B69B0D /* iRate.m in Sources */ = {isa = PBXBuildFile; fileRef = B205F2181462A82C00B69B0D /* iRate.m */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | ||
1D3623240D0F684500981E51 /* iRateAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iRateAppDelegate.h; sourceTree = "<group>"; }; | ||
1D3623250D0F684500981E51 /* iRateAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iRateAppDelegate.m; sourceTree = "<group>"; }; | ||
1D6058910D05DD3D006BFB54 /* ARC Test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ARC Test.app"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | ||
288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | ||
2899E5210DE3E06400AC0155 /* iRateViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = iRateViewController.xib; sourceTree = "<group>"; }; | ||
28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; }; | ||
28D7ACF60DDB3853001CB0EB /* iRateViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iRateViewController.h; sourceTree = "<group>"; }; | ||
28D7ACF70DDB3853001CB0EB /* iRateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iRateViewController.m; sourceTree = "<group>"; }; | ||
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | ||
32CA4F630368D1EE00C91783 /* ARC Test_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; path = "ARC Test_Prefix.pch"; sourceTree = "<group>"; }; | ||
8D1107310486CEB800E47090 /* ARC Test-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; path = "ARC Test-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; }; | ||
B205F2171462A82C00B69B0D /* iRate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iRate.h; sourceTree = "<group>"; }; | ||
B205F2181462A82C00B69B0D /* iRate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iRate.m; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
1D60588F0D05DD3D006BFB54 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, | ||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, | ||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
080E96DDFE201D6D7F000001 /* Classes */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
1D3623240D0F684500981E51 /* iRateAppDelegate.h */, | ||
1D3623250D0F684500981E51 /* iRateAppDelegate.m */, | ||
28D7ACF60DDB3853001CB0EB /* iRateViewController.h */, | ||
28D7ACF70DDB3853001CB0EB /* iRateViewController.m */, | ||
); | ||
path = Classes; | ||
sourceTree = "<group>"; | ||
}; | ||
19C28FACFE9D520D11CA2CBB /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
1D6058910D05DD3D006BFB54 /* ARC Test.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
B205F2161462A82C00B69B0D /* iRate */, | ||
080E96DDFE201D6D7F000001 /* Classes */, | ||
29B97315FDCFA39411CA2CEA /* Other Sources */, | ||
29B97317FDCFA39411CA2CEA /* Resources */, | ||
29B97323FDCFA39411CA2CEA /* Frameworks */, | ||
19C28FACFE9D520D11CA2CBB /* Products */, | ||
); | ||
name = CustomTemplate; | ||
sourceTree = "<group>"; | ||
}; | ||
29B97315FDCFA39411CA2CEA /* Other Sources */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
8D1107310486CEB800E47090 /* ARC Test-Info.plist */, | ||
32CA4F630368D1EE00C91783 /* ARC Test_Prefix.pch */, | ||
29B97316FDCFA39411CA2CEA /* main.m */, | ||
); | ||
name = "Other Sources"; | ||
sourceTree = "<group>"; | ||
}; | ||
29B97317FDCFA39411CA2CEA /* Resources */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2899E5210DE3E06400AC0155 /* iRateViewController.xib */, | ||
28AD733E0D9D9553002E5188 /* MainWindow.xib */, | ||
); | ||
name = Resources; | ||
sourceTree = "<group>"; | ||
}; | ||
29B97323FDCFA39411CA2CEA /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, | ||
1D30AB110D05D00D00671497 /* Foundation.framework */, | ||
288765A40DF7441C002DB57D /* CoreGraphics.framework */, | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
B205F2161462A82C00B69B0D /* iRate */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
B205F2171462A82C00B69B0D /* iRate.h */, | ||
B205F2181462A82C00B69B0D /* iRate.m */, | ||
); | ||
name = iRate; | ||
path = ../../iRate; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
1D6058900D05DD3D006BFB54 /* ARC Test */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "ARC Test" */; | ||
buildPhases = ( | ||
1D60588D0D05DD3D006BFB54 /* Resources */, | ||
1D60588E0D05DD3D006BFB54 /* Sources */, | ||
1D60588F0D05DD3D006BFB54 /* Frameworks */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = "ARC Test"; | ||
productName = iVersion; | ||
productReference = 1D6058910D05DD3D006BFB54 /* ARC Test.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
29B97313FDCFA39411CA2CEA /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastUpgradeCheck = 0420; | ||
}; | ||
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ARC Test" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 1; | ||
knownRegions = ( | ||
English, | ||
Japanese, | ||
French, | ||
German, | ||
); | ||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
1D6058900D05DD3D006BFB54 /* ARC Test */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
1D60588D0D05DD3D006BFB54 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */, | ||
2899E5220DE3E06400AC0155 /* iRateViewController.xib in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
1D60588E0D05DD3D006BFB54 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
1D60589B0D05DD56006BFB54 /* main.m in Sources */, | ||
1D3623260D0F684500981E51 /* iRateAppDelegate.m in Sources */, | ||
28D7ACF80DDB3853001CB0EB /* iRateViewController.m in Sources */, | ||
B205F2191462A82C00B69B0D /* iRate.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
1D6058940D05DD3E006BFB54 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
COPY_PHASE_STRIP = NO; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "ARC Test_Prefix.pch"; | ||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
INFOPLIST_FILE = "ARC Test-Info.plist"; | ||
PRODUCT_NAME = "ARC Test"; | ||
}; | ||
name = Debug; | ||
}; | ||
1D6058950D05DD3E006BFB54 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
COPY_PHASE_STRIP = YES; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "ARC Test_Prefix.pch"; | ||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
INFOPLIST_FILE = "ARC Test-Info.plist"; | ||
PRODUCT_NAME = "ARC Test"; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
C01FCF4F08A954540054247B /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
GCC_C_LANGUAGE_STANDARD = c99; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 3.0; | ||
SDKROOT = iphoneos; | ||
}; | ||
name = Debug; | ||
}; | ||
C01FCF5008A954540054247B /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
GCC_C_LANGUAGE_STANDARD = c99; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 3.0; | ||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; | ||
SDKROOT = iphoneos; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "ARC Test" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
1D6058940D05DD3E006BFB54 /* Debug */, | ||
1D6058950D05DD3E006BFB54 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ARC Test" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
C01FCF4F08A954540054247B /* Debug */, | ||
C01FCF5008A954540054247B /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// Prefix header for all source files of the 'iRate' target in the 'iRate' project | ||
// | ||
|
||
#ifdef __OBJC__ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// iRateAppDelegate.h | ||
// iRate | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@class iRateViewController; | ||
|
||
@interface iRateAppDelegate : NSObject <UIApplicationDelegate> { | ||
UIWindow *window; | ||
iRateViewController *viewController; | ||
} | ||
|
||
@property (nonatomic) IBOutlet UIWindow *window; | ||
@property (nonatomic) IBOutlet iRateViewController *viewController; | ||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// iRateAppDelegate.m | ||
// iRate | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import "iRateAppDelegate.h" | ||
#import "iRateViewController.h" | ||
#import "iRate.h" | ||
|
||
|
||
@implementation iRateAppDelegate | ||
|
||
@synthesize window; | ||
@synthesize viewController; | ||
|
||
|
||
#pragma mark - | ||
#pragma mark Application lifecycle | ||
|
||
+ (void)initialize | ||
{ | ||
//configure iRate | ||
[iRate sharedInstance].appStoreID = 355313284; | ||
[iRate sharedInstance].debug = YES; | ||
} | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
// Override point for customization after application launch. | ||
|
||
// Add the view controller's view to the window and display. | ||
[self.window addSubview:viewController.view]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
return YES; | ||
} | ||
|
||
#pragma mark - | ||
#pragma mark Memory management | ||
|
||
|
||
|
||
@end |
Oops, something went wrong.