├── README.md
├── ultracalc.xcodeproj
├── xcuserdata
│ └── cor.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── ultracalc.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── cor.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── ultracalc.xccheckout
└── project.pbxproj
├── ultracalc
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── Info.plist
├── AppDelegate.swift
├── ViewController.swift
└── Base.lproj
│ └── Main.storyboard
└── ultracalcTests
├── Info.plist
└── ultracalcTests.swift
/README.md:
--------------------------------------------------------------------------------
1 | supercalc
2 | =========
3 |
4 | A simple iOS calculator i made using Apple's new language Swift.
5 |
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/xcuserdata/cor.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/project.xcworkspace/xcuserdata/cor.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CoR/supercalc/master/ultracalc.xcodeproj/project.xcworkspace/xcuserdata/cor.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ultracalc/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/ultracalc/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/xcuserdata/cor.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ultracalc.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 8796E40119605F8800A77336
16 |
17 | primary
18 |
19 |
20 | 8796E41319605F8800A77336
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/ultracalcTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | self.edu.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ultracalcTests/ultracalcTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ultracalcTests.swift
3 | // ultracalcTests
4 | //
5 | // Created by Cor Pruijs on 29-06-14.
6 | // Copyright (c) 2014 Cor Pruijs. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class ultracalcTests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 | // Put setup code here. This method is called before the invocation of each test method in the class.
16 | }
17 |
18 | override func tearDown() {
19 | // Put teardown code here. This method is called after the invocation of each test method in the class.
20 | super.tearDown()
21 | }
22 |
23 | func testExample() {
24 | // This is an example of a functional test case.
25 | XCTAssert(true, "Pass")
26 | }
27 |
28 | func testPerformanceExample() {
29 | // This is an example of a performance test case.
30 | self.measureBlock() {
31 | // Put the code you want to measure the time of here.
32 | }
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/ultracalc/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | self.edu.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/project.xcworkspace/xcshareddata/ultracalc.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 2C26B8DD-E516-42EC-A4BE-32E28915688D
9 | IDESourceControlProjectName
10 | ultracalc
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | A9D4DD4D4E69AB5AB7A7FC3411366F9C61CD3B3A
14 | https://github.com/CorPruijs/supercalc.git
15 |
16 | IDESourceControlProjectPath
17 | ultracalc.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | A9D4DD4D4E69AB5AB7A7FC3411366F9C61CD3B3A
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/CorPruijs/supercalc.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | A9D4DD4D4E69AB5AB7A7FC3411366F9C61CD3B3A
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | A9D4DD4D4E69AB5AB7A7FC3411366F9C61CD3B3A
36 | IDESourceControlWCCName
37 | supercalc
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ultracalc/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ultracalc
4 | //
5 | // Created by Cor Pruijs on 29-06-14.
6 | // Copyright (c) 2014 Cor Pruijs. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/xcuserdata/cor.xcuserdatad/xcschemes/ultracalc.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
62 |
63 |
69 |
70 |
71 |
72 |
73 |
74 |
80 |
81 |
87 |
88 |
89 |
90 |
92 |
93 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/ultracalc/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ultracalc
4 | //
5 | // Created by Cor Pruijs on 29-06-14.
6 | // Copyright (c) 2014 Cor Pruijs. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | @IBOutlet var resultLabel: UILabel! = UILabel()
14 | @IBOutlet var currentOperationLabel: UILabel! = UILabel()
15 |
16 | var previousNumberString:NSString = ""
17 | var enteredNumberString:NSString = ""
18 | var currentOperation:NSString = ""
19 | var enteredNumberIsPreviousNumber = false
20 |
21 | override func viewDidLoad() {
22 | super.viewDidLoad()
23 | // Do any additional setup after loading the view, typically from a nib.
24 | self.resultLabel.text = "0"
25 | self.currentOperationLabel.text = ""
26 | }
27 |
28 | override func didReceiveMemoryWarning() {
29 | super.didReceiveMemoryWarning()
30 | // Dispose of any resources that can be recreated.
31 | }
32 |
33 | @IBAction func numberButtonPressed(sender: UIButton) {
34 | if self.enteredNumberIsPreviousNumber {
35 | self.enteredNumberString = ""
36 | self.enteredNumberIsPreviousNumber = false
37 | }
38 |
39 | if let titl = sender.currentTitle {
40 | self.enteredNumberString = self.enteredNumberString + sender.currentTitle!
41 | }
42 | self.resultLabel.text = enteredNumberString
43 | }
44 |
45 | @IBAction func functionButtonPressed(sender: UIButton) {
46 | if let buttonName = sender.restorationIdentifier? {
47 | self.calculateAndUpdate()
48 | switch buttonName {
49 | case "add":
50 | println("add")
51 | self.currentOperation = "add"
52 |
53 | case "subtract":
54 | println("subtract")
55 | self.currentOperation = "subtract"
56 |
57 | case "multiply":
58 | println("multiply")
59 | self.currentOperation = "multiply"
60 |
61 | case "divide":
62 | println("divide")
63 | self.currentOperation = "divide"
64 |
65 | case "clear":
66 | println("clear")
67 | self.currentOperation = "clear"
68 |
69 | case "equals":
70 | println("equals")
71 | self.currentOperation = "equals"
72 |
73 | default:
74 | println("ERROR: Invalid sender.currentTitle")
75 | }
76 |
77 | self.enteredNumberIsPreviousNumber = true
78 |
79 | if self.currentOperation == "clear" || self.currentOperation == "equals" {
80 | self.currentOperationLabel.text = ""
81 | } else {
82 | self.currentOperationLabel.text = "\(self.currentOperation)"
83 | }
84 |
85 | if self.currentOperation == "clear" {
86 | self.currentOperation = ""
87 | self.previousNumberString = ""
88 | self.enteredNumberString = ""
89 |
90 | self.resultLabel.text = "0"
91 | self.currentOperationLabel.text = ""
92 | }
93 | }
94 | }
95 |
96 | func previous() -> Int {
97 | return self.previousNumberString.integerValue;
98 | }
99 |
100 | func calculateAndUpdate() {
101 | println(self.enteredNumberString)
102 | switch self.currentOperation {
103 | case "":
104 | self.previousNumberString = self.enteredNumberString
105 |
106 | case "add":
107 | self.previousNumberString = String(self.previousNumberString.integerValue + self.enteredNumberString.integerValue)
108 |
109 | case "subtract":
110 | self.previousNumberString = String(self.previousNumberString.integerValue - self.enteredNumberString.integerValue)
111 |
112 | case "multiply":
113 | self.previousNumberString = String(self.previousNumberString.integerValue * self.enteredNumberString.integerValue)
114 |
115 | case "divide":
116 | if self.enteredNumberString.integerValue == 0 {
117 | self.previousNumberString = "Devide by 0 again, i dare you, i double dare you motherfucker!"
118 | } else {
119 | self.previousNumberString = String(self.previousNumberString.integerValue / self.enteredNumberString.integerValue)
120 | }
121 |
122 | case "equals":
123 | self.previousNumberString = self.enteredNumberString
124 |
125 | default:
126 | println("ERROR: Invalid self.currentOperation")
127 | }
128 |
129 | self.enteredNumberString = self.previousNumberString
130 | self.resultLabel.text = self.previousNumberString
131 | }
132 | }
--------------------------------------------------------------------------------
/ultracalc.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 8796E40819605F8800A77336 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8796E40719605F8800A77336 /* AppDelegate.swift */; };
11 | 8796E40A19605F8800A77336 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8796E40919605F8800A77336 /* ViewController.swift */; };
12 | 8796E40D19605F8800A77336 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8796E40B19605F8800A77336 /* Main.storyboard */; };
13 | 8796E40F19605F8800A77336 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8796E40E19605F8800A77336 /* Images.xcassets */; };
14 | 8796E41B19605F8800A77336 /* ultracalcTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8796E41A19605F8800A77336 /* ultracalcTests.swift */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXContainerItemProxy section */
18 | 8796E41519605F8800A77336 /* PBXContainerItemProxy */ = {
19 | isa = PBXContainerItemProxy;
20 | containerPortal = 8796E3FA19605F8800A77336 /* Project object */;
21 | proxyType = 1;
22 | remoteGlobalIDString = 8796E40119605F8800A77336;
23 | remoteInfo = ultracalc;
24 | };
25 | /* End PBXContainerItemProxy section */
26 |
27 | /* Begin PBXFileReference section */
28 | 8796E40219605F8800A77336 /* ultracalc.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ultracalc.app; sourceTree = BUILT_PRODUCTS_DIR; };
29 | 8796E40619605F8800A77336 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 8796E40719605F8800A77336 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
31 | 8796E40919605F8800A77336 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
32 | 8796E40C19605F8800A77336 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
33 | 8796E40E19605F8800A77336 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
34 | 8796E41419605F8800A77336 /* ultracalcTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ultracalcTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
35 | 8796E41919605F8800A77336 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
36 | 8796E41A19605F8800A77336 /* ultracalcTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ultracalcTests.swift; sourceTree = ""; };
37 | /* End PBXFileReference section */
38 |
39 | /* Begin PBXFrameworksBuildPhase section */
40 | 8796E3FF19605F8800A77336 /* Frameworks */ = {
41 | isa = PBXFrameworksBuildPhase;
42 | buildActionMask = 2147483647;
43 | files = (
44 | );
45 | runOnlyForDeploymentPostprocessing = 0;
46 | };
47 | 8796E41119605F8800A77336 /* Frameworks */ = {
48 | isa = PBXFrameworksBuildPhase;
49 | buildActionMask = 2147483647;
50 | files = (
51 | );
52 | runOnlyForDeploymentPostprocessing = 0;
53 | };
54 | /* End PBXFrameworksBuildPhase section */
55 |
56 | /* Begin PBXGroup section */
57 | 8796E3F919605F8800A77336 = {
58 | isa = PBXGroup;
59 | children = (
60 | 8796E40419605F8800A77336 /* ultracalc */,
61 | 8796E41719605F8800A77336 /* ultracalcTests */,
62 | 8796E40319605F8800A77336 /* Products */,
63 | );
64 | sourceTree = "";
65 | };
66 | 8796E40319605F8800A77336 /* Products */ = {
67 | isa = PBXGroup;
68 | children = (
69 | 8796E40219605F8800A77336 /* ultracalc.app */,
70 | 8796E41419605F8800A77336 /* ultracalcTests.xctest */,
71 | );
72 | name = Products;
73 | sourceTree = "";
74 | };
75 | 8796E40419605F8800A77336 /* ultracalc */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 8796E40719605F8800A77336 /* AppDelegate.swift */,
79 | 8796E40919605F8800A77336 /* ViewController.swift */,
80 | 8796E40B19605F8800A77336 /* Main.storyboard */,
81 | 8796E40E19605F8800A77336 /* Images.xcassets */,
82 | 8796E40519605F8800A77336 /* Supporting Files */,
83 | );
84 | path = ultracalc;
85 | sourceTree = "";
86 | };
87 | 8796E40519605F8800A77336 /* Supporting Files */ = {
88 | isa = PBXGroup;
89 | children = (
90 | 8796E40619605F8800A77336 /* Info.plist */,
91 | );
92 | name = "Supporting Files";
93 | sourceTree = "";
94 | };
95 | 8796E41719605F8800A77336 /* ultracalcTests */ = {
96 | isa = PBXGroup;
97 | children = (
98 | 8796E41A19605F8800A77336 /* ultracalcTests.swift */,
99 | 8796E41819605F8800A77336 /* Supporting Files */,
100 | );
101 | path = ultracalcTests;
102 | sourceTree = "";
103 | };
104 | 8796E41819605F8800A77336 /* Supporting Files */ = {
105 | isa = PBXGroup;
106 | children = (
107 | 8796E41919605F8800A77336 /* Info.plist */,
108 | );
109 | name = "Supporting Files";
110 | sourceTree = "";
111 | };
112 | /* End PBXGroup section */
113 |
114 | /* Begin PBXNativeTarget section */
115 | 8796E40119605F8800A77336 /* ultracalc */ = {
116 | isa = PBXNativeTarget;
117 | buildConfigurationList = 8796E41E19605F8800A77336 /* Build configuration list for PBXNativeTarget "ultracalc" */;
118 | buildPhases = (
119 | 8796E3FE19605F8800A77336 /* Sources */,
120 | 8796E3FF19605F8800A77336 /* Frameworks */,
121 | 8796E40019605F8800A77336 /* Resources */,
122 | );
123 | buildRules = (
124 | );
125 | dependencies = (
126 | );
127 | name = ultracalc;
128 | productName = ultracalc;
129 | productReference = 8796E40219605F8800A77336 /* ultracalc.app */;
130 | productType = "com.apple.product-type.application";
131 | };
132 | 8796E41319605F8800A77336 /* ultracalcTests */ = {
133 | isa = PBXNativeTarget;
134 | buildConfigurationList = 8796E42119605F8800A77336 /* Build configuration list for PBXNativeTarget "ultracalcTests" */;
135 | buildPhases = (
136 | 8796E41019605F8800A77336 /* Sources */,
137 | 8796E41119605F8800A77336 /* Frameworks */,
138 | 8796E41219605F8800A77336 /* Resources */,
139 | );
140 | buildRules = (
141 | );
142 | dependencies = (
143 | 8796E41619605F8800A77336 /* PBXTargetDependency */,
144 | );
145 | name = ultracalcTests;
146 | productName = ultracalcTests;
147 | productReference = 8796E41419605F8800A77336 /* ultracalcTests.xctest */;
148 | productType = "com.apple.product-type.bundle.unit-test";
149 | };
150 | /* End PBXNativeTarget section */
151 |
152 | /* Begin PBXProject section */
153 | 8796E3FA19605F8800A77336 /* Project object */ = {
154 | isa = PBXProject;
155 | attributes = {
156 | LastUpgradeCheck = 0600;
157 | ORGANIZATIONNAME = "Cor Pruijs";
158 | TargetAttributes = {
159 | 8796E40119605F8800A77336 = {
160 | CreatedOnToolsVersion = 6.0;
161 | DevelopmentTeam = BSN9DSQ2C4;
162 | };
163 | 8796E41319605F8800A77336 = {
164 | CreatedOnToolsVersion = 6.0;
165 | TestTargetID = 8796E40119605F8800A77336;
166 | };
167 | };
168 | };
169 | buildConfigurationList = 8796E3FD19605F8800A77336 /* Build configuration list for PBXProject "ultracalc" */;
170 | compatibilityVersion = "Xcode 3.2";
171 | developmentRegion = English;
172 | hasScannedForEncodings = 0;
173 | knownRegions = (
174 | en,
175 | Base,
176 | );
177 | mainGroup = 8796E3F919605F8800A77336;
178 | productRefGroup = 8796E40319605F8800A77336 /* Products */;
179 | projectDirPath = "";
180 | projectRoot = "";
181 | targets = (
182 | 8796E40119605F8800A77336 /* ultracalc */,
183 | 8796E41319605F8800A77336 /* ultracalcTests */,
184 | );
185 | };
186 | /* End PBXProject section */
187 |
188 | /* Begin PBXResourcesBuildPhase section */
189 | 8796E40019605F8800A77336 /* Resources */ = {
190 | isa = PBXResourcesBuildPhase;
191 | buildActionMask = 2147483647;
192 | files = (
193 | 8796E40D19605F8800A77336 /* Main.storyboard in Resources */,
194 | 8796E40F19605F8800A77336 /* Images.xcassets in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | 8796E41219605F8800A77336 /* Resources */ = {
199 | isa = PBXResourcesBuildPhase;
200 | buildActionMask = 2147483647;
201 | files = (
202 | );
203 | runOnlyForDeploymentPostprocessing = 0;
204 | };
205 | /* End PBXResourcesBuildPhase section */
206 |
207 | /* Begin PBXSourcesBuildPhase section */
208 | 8796E3FE19605F8800A77336 /* Sources */ = {
209 | isa = PBXSourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | 8796E40A19605F8800A77336 /* ViewController.swift in Sources */,
213 | 8796E40819605F8800A77336 /* AppDelegate.swift in Sources */,
214 | );
215 | runOnlyForDeploymentPostprocessing = 0;
216 | };
217 | 8796E41019605F8800A77336 /* Sources */ = {
218 | isa = PBXSourcesBuildPhase;
219 | buildActionMask = 2147483647;
220 | files = (
221 | 8796E41B19605F8800A77336 /* ultracalcTests.swift in Sources */,
222 | );
223 | runOnlyForDeploymentPostprocessing = 0;
224 | };
225 | /* End PBXSourcesBuildPhase section */
226 |
227 | /* Begin PBXTargetDependency section */
228 | 8796E41619605F8800A77336 /* PBXTargetDependency */ = {
229 | isa = PBXTargetDependency;
230 | target = 8796E40119605F8800A77336 /* ultracalc */;
231 | targetProxy = 8796E41519605F8800A77336 /* PBXContainerItemProxy */;
232 | };
233 | /* End PBXTargetDependency section */
234 |
235 | /* Begin PBXVariantGroup section */
236 | 8796E40B19605F8800A77336 /* Main.storyboard */ = {
237 | isa = PBXVariantGroup;
238 | children = (
239 | 8796E40C19605F8800A77336 /* Base */,
240 | );
241 | name = Main.storyboard;
242 | sourceTree = "";
243 | };
244 | /* End PBXVariantGroup section */
245 |
246 | /* Begin XCBuildConfiguration section */
247 | 8796E41C19605F8800A77336 /* Debug */ = {
248 | isa = XCBuildConfiguration;
249 | buildSettings = {
250 | ALWAYS_SEARCH_USER_PATHS = NO;
251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
252 | CLANG_CXX_LIBRARY = "libc++";
253 | CLANG_ENABLE_MODULES = YES;
254 | CLANG_ENABLE_OBJC_ARC = YES;
255 | CLANG_WARN_BOOL_CONVERSION = YES;
256 | CLANG_WARN_CONSTANT_CONVERSION = YES;
257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
258 | CLANG_WARN_EMPTY_BODY = YES;
259 | CLANG_WARN_ENUM_CONVERSION = YES;
260 | CLANG_WARN_INT_CONVERSION = YES;
261 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
262 | CLANG_WARN_UNREACHABLE_CODE = YES;
263 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
264 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
265 | COPY_PHASE_STRIP = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_DYNAMIC_NO_PIC = NO;
269 | GCC_OPTIMIZATION_LEVEL = 0;
270 | GCC_PREPROCESSOR_DEFINITIONS = (
271 | "DEBUG=1",
272 | "$(inherited)",
273 | );
274 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
277 | GCC_WARN_UNDECLARED_SELECTOR = YES;
278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
279 | GCC_WARN_UNUSED_FUNCTION = YES;
280 | GCC_WARN_UNUSED_VARIABLE = YES;
281 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
282 | METAL_ENABLE_DEBUG_INFO = YES;
283 | ONLY_ACTIVE_ARCH = YES;
284 | SDKROOT = iphoneos;
285 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
286 | };
287 | name = Debug;
288 | };
289 | 8796E41D19605F8800A77336 /* Release */ = {
290 | isa = XCBuildConfiguration;
291 | buildSettings = {
292 | ALWAYS_SEARCH_USER_PATHS = NO;
293 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
294 | CLANG_CXX_LIBRARY = "libc++";
295 | CLANG_ENABLE_MODULES = YES;
296 | CLANG_ENABLE_OBJC_ARC = YES;
297 | CLANG_WARN_BOOL_CONVERSION = YES;
298 | CLANG_WARN_CONSTANT_CONVERSION = YES;
299 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
300 | CLANG_WARN_EMPTY_BODY = YES;
301 | CLANG_WARN_ENUM_CONVERSION = YES;
302 | CLANG_WARN_INT_CONVERSION = YES;
303 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
304 | CLANG_WARN_UNREACHABLE_CODE = YES;
305 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
306 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
307 | COPY_PHASE_STRIP = YES;
308 | ENABLE_NS_ASSERTIONS = NO;
309 | ENABLE_STRICT_OBJC_MSGSEND = YES;
310 | GCC_C_LANGUAGE_STANDARD = gnu99;
311 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
312 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
313 | GCC_WARN_UNDECLARED_SELECTOR = YES;
314 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
315 | GCC_WARN_UNUSED_FUNCTION = YES;
316 | GCC_WARN_UNUSED_VARIABLE = YES;
317 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
318 | METAL_ENABLE_DEBUG_INFO = NO;
319 | SDKROOT = iphoneos;
320 | VALIDATE_PRODUCT = YES;
321 | };
322 | name = Release;
323 | };
324 | 8796E41F19605F8800A77336 /* Debug */ = {
325 | isa = XCBuildConfiguration;
326 | buildSettings = {
327 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
328 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
329 | INFOPLIST_FILE = ultracalc/Info.plist;
330 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
331 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
332 | PRODUCT_NAME = "$(TARGET_NAME)";
333 | };
334 | name = Debug;
335 | };
336 | 8796E42019605F8800A77336 /* Release */ = {
337 | isa = XCBuildConfiguration;
338 | buildSettings = {
339 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
340 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
341 | INFOPLIST_FILE = ultracalc/Info.plist;
342 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
343 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
344 | PRODUCT_NAME = "$(TARGET_NAME)";
345 | };
346 | name = Release;
347 | };
348 | 8796E42219605F8800A77336 /* Debug */ = {
349 | isa = XCBuildConfiguration;
350 | buildSettings = {
351 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ultracalc.app/ultracalc";
352 | FRAMEWORK_SEARCH_PATHS = (
353 | "$(SDKROOT)/Developer/Library/Frameworks",
354 | "$(inherited)",
355 | );
356 | GCC_PREPROCESSOR_DEFINITIONS = (
357 | "DEBUG=1",
358 | "$(inherited)",
359 | );
360 | INFOPLIST_FILE = ultracalcTests/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
362 | METAL_ENABLE_DEBUG_INFO = YES;
363 | PRODUCT_NAME = "$(TARGET_NAME)";
364 | TEST_HOST = "$(BUNDLE_LOADER)";
365 | };
366 | name = Debug;
367 | };
368 | 8796E42319605F8800A77336 /* Release */ = {
369 | isa = XCBuildConfiguration;
370 | buildSettings = {
371 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ultracalc.app/ultracalc";
372 | FRAMEWORK_SEARCH_PATHS = (
373 | "$(SDKROOT)/Developer/Library/Frameworks",
374 | "$(inherited)",
375 | );
376 | INFOPLIST_FILE = ultracalcTests/Info.plist;
377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
378 | METAL_ENABLE_DEBUG_INFO = NO;
379 | PRODUCT_NAME = "$(TARGET_NAME)";
380 | TEST_HOST = "$(BUNDLE_LOADER)";
381 | };
382 | name = Release;
383 | };
384 | /* End XCBuildConfiguration section */
385 |
386 | /* Begin XCConfigurationList section */
387 | 8796E3FD19605F8800A77336 /* Build configuration list for PBXProject "ultracalc" */ = {
388 | isa = XCConfigurationList;
389 | buildConfigurations = (
390 | 8796E41C19605F8800A77336 /* Debug */,
391 | 8796E41D19605F8800A77336 /* Release */,
392 | );
393 | defaultConfigurationIsVisible = 0;
394 | defaultConfigurationName = Release;
395 | };
396 | 8796E41E19605F8800A77336 /* Build configuration list for PBXNativeTarget "ultracalc" */ = {
397 | isa = XCConfigurationList;
398 | buildConfigurations = (
399 | 8796E41F19605F8800A77336 /* Debug */,
400 | 8796E42019605F8800A77336 /* Release */,
401 | );
402 | defaultConfigurationIsVisible = 0;
403 | defaultConfigurationName = Release;
404 | };
405 | 8796E42119605F8800A77336 /* Build configuration list for PBXNativeTarget "ultracalcTests" */ = {
406 | isa = XCConfigurationList;
407 | buildConfigurations = (
408 | 8796E42219605F8800A77336 /* Debug */,
409 | 8796E42319605F8800A77336 /* Release */,
410 | );
411 | defaultConfigurationIsVisible = 0;
412 | defaultConfigurationName = Release;
413 | };
414 | /* End XCConfigurationList section */
415 | };
416 | rootObject = 8796E3FA19605F8800A77336 /* Project object */;
417 | }
418 |
--------------------------------------------------------------------------------
/ultracalc/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
28 |
42 |
56 |
70 |
84 |
98 |
112 |
126 |
140 |
154 |
168 |
182 |
196 |
210 |
224 |
238 |
252 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
--------------------------------------------------------------------------------