├── .gitignore ├── README.md ├── TimeHarker-OSX.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── TimeHarker-OSX ├── AppDelegate.swift ├── Base.lproj │ └── MainMenu.xib ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist └── main.swift └── TimeHarker-OSXTests ├── Info.plist └── TimeHarker_OSXTests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | */build/* 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | profile 14 | *.moved-aside 15 | DerivedData 16 | .idea/ 17 | *.hmap 18 | *.xccheckout 19 | 20 | #CocoaPods 21 | Pods 22 | 23 | *.app -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 陀思妥耶夫斯基在《白痴》中写到一个死刑犯作如是想: 2 | 3 | >如果不死该有多好啊!我会把每一点时间精打细算,绝不浪费一分钟。 4 | 5 | ## 时间统计法 6 | 最早记录 ,是从 [奇特的一生](http://book.douban.com/subject/1115353/) 开始的 7 | 大致是说,主角 柳比歇夫 一生完成了不可思议的工作量,对于时间,有近乎直觉的敏感 8 | 9 | 一般来说,我们陷入 [心流(ZONE)](http://zh.wikipedia.org/zh/%E5%BF%83%E6%B5%81%E7%90%86%E8%AB%96) (翻译成 领域 多好) 的时候,往往是觉察不到时间流逝的,即 主观时间 和 客观时间 有偏差 10 | 11 | 而 柳比歇夫 在全神贯注下,也能感应到客观时间的长度,并且可以精确到分钟 12 | 他有个笔记本(纸质的),用来记录每项 Activity 所花费的时间 13 | 像是管理资金那样,管理 时间 14 | 所以最早我使用一种 记账软件 来做的记录 15 | 16 | 其实人活到到一定阶段后,就会深刻认识到 **时间** 才是最宝贵的资源,你可以用 时间 去换 钱以及大多数东西,而反过来却不行 17 | 我想这也是张爱玲说 “青春太美好,怎么过都是浪费” 的原因(之一)吧 18 | 19 | ## 番茄工作法为什么不行 20 | 21 | 不是不行,而是现在许多软件上来就设死了 25 分钟,这是要闹哪样啊 O__O"… 22 | 23 | [How to learn to learn 24 | ](http://book.douban.com/subject/2255378/) 25 | 中有提到,学习是个渐进的过程,设个定时器,等走神了就能测量集中注意力的时间 26 | 27 | 很多人对番茄的了解只是通过软件,而 ThePomodoroTechnique 本身已经提到: 28 | >"Can you study – really study - for 10 minutes?" 29 | 30 | 作者也是渐进式的加到 25 分钟的 31 | 32 | ## 时间记录类APP为什么不行 33 | 我知道肯定要被黑了 34 | 但你请耐心的看完,如果做到了我也会很喜欢 35 | 36 | 1. 生命周期 37 | 让我印象最深刻的就是 Catch、Google reader 停止的服务 38 | 因为这是项马拉松工程,目前移动互联网的 APP 的生命周期远远短于你的寿命 39 | 就说柳比歇夫坚持56年的 "时间统计法", 别说应用了,能存在那么长时间的公司都非常牛了 40 | 2. 数据 41 | 我手机重装了怎么办 42 | 虽然有 iCloud 等云同步,但作者不更新 App 了,也没公开源代码,我怎么办?投入了几年时间,结果换来竹篮打水一场空? 43 | 44 | 45 | ## 日历 46 | 最早用 Google Calendar,只是校招的时候记录各个公司的面试时间,后来看到这本书,一下恍然大悟 47 | 之后傻逼一样的记录了两年,但当时仅仅是记录,从来没回顾过,更别说搞个月总结,年度展望神马的 48 | 49 | 然后又看到 [把时间留给最重要的事](http://book.douban.com/subject/2979575/),这时我突然发现,以前记录的数据派上用场了 50 | 并且此书给我最大的启发就是对日历的应用 51 | 之前我所记录的都是一个颜色,估计这也是我懒得去看的一个原因 52 | 而书中把时间花销分为几个,并且用不同的颜色代表 53 | 我自己的分类: 54 | 55 | - 碎片 - 蓝 56 | - 人际 - 红 57 | - 健康 - 黄 58 | - 兴趣 - 青 59 | - 事业 - 灰 60 | 61 | ![](http://cl.ly/image/1u3q29200w23/time-harker-3.png) 62 | 63 | 这样一周下来,扫一眼大致就知道时间的花销情况 64 | 65 | ## 一万小时天才理论 66 | 这本书是我在 `2011-11-24 8:00 PM` 学校图书馆看到的,如果不是有日历,谁还知道是哪一天 67 | 68 | 另外记录还一个好处,看上面的标题应该已经猜到了 69 | 70 | 只要分类准确,把所有相同的一加,结果就出来了 71 | 72 | 比如编程方面,我投入多少小时,只要运行下这个项目就出来了 73 | 74 | 当然不是说,结果是 1W,就是天才了 75 | 刻意的训练,时时处在挑战区还是蛮困难的 76 | 77 | 不过虽不说成为天才,能看到自己在一项上持续的进步,也是很开心的 78 | 79 | ## 理论指导 80 | ![img](http://cl.ly/image/2d3l0U0M0r1W/s4102399.jpg) ![image](http://cl.ly/image/3A1h2Q3P2T1N/s4595192.jpg)![image](http://cl.ly/image/453U3Z2O2K3a/s6225672.jpg)![image](http://cl.ly/image/3F2O3D1c1w46/s27133167.jpg)![](http://cl.ly/image/332H373X2209/s2714860.jpg) 81 | 82 | ## 难处 83 | 最大的困难是数据的积累,人都是有惰性的,想想各种理财软件吧,那种都短信自动了,我也只用了三个月就扔了 84 | 并且这种事情不是一躇而就,需要长时间的积累和耐心 85 | 86 | 另外,看多少时间管理作用可能都不大 87 | 知行合一,只有用出来了,才是真正懂了 88 | 所以,最好的 GTD,是适合自己的 89 | 90 | 没有满意的就自己写一个,不然学编程是干嘛的 91 | 92 | ## iOS Version On App Store 93 | [TimeHacker](https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=892273622&mt=8) 94 | 95 | ## Mac OS X 96 | 97 | ### Usage 98 | 99 | --- 100 | 2014-09-19 12:03:57 101 | 102 | Move [AnalyzeGoogleCalender By Python](https://gist.github.com/Artwalk/7b0950dc8d64b92ecd59) to Gist 103 | 104 | Begin to rewrite `OS X` Version with `Swift` 105 | 106 | --- 107 | 108 | 2014-06-13 15:32:37 109 | 110 | 几经波折,开发者账号终于拿到啦 111 | 除了这个,还有一些好玩的想法,终于可以在真机上实验啦~ 112 | 113 | 先把原来那样简单的 iOS 删掉,以后单开个 Repo(好吧,我是被 GIT 的 subtree 折腾死了) 114 | 115 | 过过这个小应用说不定真的能上架呢 116 | 117 | PS: 118 | 688大洋,无视国际汇率,当国民是傻子么,奇葩的国度 119 | 120 | 本杰明·富兰克林曾说过: 121 | >在这个世界上,除税收和死亡外,没有什么是确切的 122 | 123 | 真是体现的淋漓尽致... 124 | 125 | --- 126 | 127 | 2014-05-13 12:28:55 128 | 129 | ![](http://cl.ly/image/270S2V2e0e3P/time-harker-5.png) 130 | 131 | 终于把自己想要的功能实现的差不多啦,日历也分类完毕 132 | 133 | 134 | 基本每个阶段都是一年左右,从分析结果来看: 135 | 1. 后面逐渐只记录一些重要的事情,不像刚刚接触《奇特》时,日历撑的满满,鸡毛蒜皮都记上 136 | 2. 自己喜欢的一些事情,投入逐渐增多,相对的事业(其实就是编程)相对的就少喽 137 | 3. 本以为经过各种 GTD 的洗礼,Gap 时间分配已经很不错了呢,结果最多的还是碎片啊 ... 138 | 139 | 数据可以纠正感觉上的不靠谱 140 | 141 | 自己的结果如下: 142 | 143 | | 时间段 | 人际 | 兴趣 | 碎片 | 健康 | 事业 | Total | 144 | |----------|:---:|------|-------:|-----|------|---------| 145 | | Gap | 9.99% | 26.72% | 35.63% | 15.41% | 12.25% | 2784 h | 146 | | 工作 | 10.55% | 13.75% | 31.94% |20.81% |22.95% | 3403 h | 147 | | 大学 | 13.50% | 10.63% | 19.39% | 45.07% | 11.42% | 3415 h | 148 | | All | 11.44% |16.41% | 18.72% | 37.68% |15.75% |9605 h| 149 | 150 | 一共: 151 | 人际 : already 1099 h,8901 h remained 152 | 兴趣 : already 1576 h,8424 h remained 153 | 健康 : already 1798 h,8202 h remained 154 | 碎片 : already 3619 h,6381 h remained 155 | 事业 : already 1513 h,8487 h remained 156 | 157 | 158 | - - - 159 | 160 | 2014-05-04 09:31:45 161 | 162 | 由于还木有开发者账号,就先在 OSX 上实验了 163 | 平时就用来源不明的 `*.app` 同学双击`iCaleminder_OSX`应该就能打开 164 | 或者直接用 `Xcode` 编译运行 165 | 166 | `Task` 可以自己编一个,或者从 `Reminders` 中选择 167 | `Start` 后此 `Task` 如果坚持超过10分钟,就插入到 `iCal` 中去 168 | 169 | ![](http://cl.ly/image/021f1h0Y3y3H/time-harker-4.png) 170 | 171 | 请轻点~ 172 | OSx 之前也没看过,各种不懂 173 | 按钮拖过来拖过去,到让我想起来以前做毕设的时候用 VS 做那什么 NTFS 秒速查找的事情(这人一老吧,就容易怀念过去) 174 | 175 | 一边写一边感觉自己在生产垃圾代码 176 | 还忍不住去想效率重构神马的 177 | 但我知道: 178 | >过早的优化是一切罪恶的根源 —— 高德纳 179 | 180 | 181 | 总之各种坑,如果 Pro 外壳是软金属的会不会已经被我拍成 Air 了 182 | 要是真不行了崩了就当没看见,默默的重开一次吧 →_→ 183 | 184 | PS: 185 | `Reminder` 如果在编辑,这边获取好像就会挂 186 | 187 | 188 | --- 189 | 2014-04-29 22:54:38 190 | 191 | add iOS & OS X iCal analytics 192 | 193 | Last year I have my rMBP, so Google Cal is not importent as before, especially after I import all cav from gCal to iCal. 194 | 195 | 好吧,不装了,Σ(  ̄д ̄;) 我知道你们也不想看英文 196 | 上次脑抽了用E文,现在我都得看一会儿写的是神马,那时我还没买 rMBP 呢 197 | 198 | 刚刚突然想到,也不知道离 1W 还有多少, 199 | 虽然到了 1W 也不代表就是天才了,但是忍不住好奇心啊 200 | 201 | 虽然 MAC 买半年了,但 iOS 开发基本没怎么看,边码边查,居然弄出来了,好开心 ^_^ 202 | 测试大概如图: 203 | ![](http://cl.ly/image/2s2h1Q421z0y/time-harker-1.png) 204 | 205 | `NSLog` 打出来是很快的,`[self.tableView reloadData];` 需要几秒钟,耐心等一小会儿就好~~ 206 | 207 | 但是有个问题哦,没法装到真机上!!! 208 | 偶之前没(¥)买开发者账号,模拟器上的 iCal 好像只能同步一个月,肿么会酱紫 209 | 。・゚・(\*ノД`\*)・゚・。 210 | 211 | 然后记得看文档时,`EKEventStore` OS X 也可以用,试了下果然可以 212 | 图形界面先不搞了,在 xCode 里面 `NSLog` 看下结果 213 | 214 | 但是这里有个 BUG : 有啥 fix 方案吗? 215 | 216 | `yearsAgoComponents.year= -4;` 如果超过 -4, 统计就出现丢失数据的情况 217 | 218 | ```Objective-C 219 | NSDateComponents *yearsAgoComponents = [[NSDateComponents alloc] init]; 220 | yearsAgoComponents.year= -4; 221 | NSDate *yearsAgo = [calendar dateByAddingComponents:yearsAgoComponents 222 | toDate:[NSDate date] 223 | options:0]; 224 | 225 | ``` 226 | 227 | 228 | 不过还好我也不到3年,先放着 229 | 一共记录了 9620 小时,我如果只专注于做一件事,是不是离天才只有一步之遥了 \*´∀\`)´∀\`)\*´∀\`)\*´∀\`) 230 | 231 | 不过之前两年是没有颜色分类的,最近又要找工作,等有时间整理下看看结果是多少 232 | 233 | 234 | --- 235 | 236 | I read many books about how to make full use of time. 237 | 238 | In the process, little by little, I realised that **TIME** are really your *friends* rather than enemies. 239 | 240 | You playing with it, working with it, living with it. 241 | 242 | As a person, You can using past experiences as a base for further improvement. 243 | So, something like a *time tracker* would be needed. 244 | 245 | In the past two years, I found a lot of softwares such as *idoit Any.do Catch*, which help me a lot. 246 | 247 | But there was a problem, *time tracker* is something I need to use at least several decades(considering my health). If I use an app, how on earth do I know this app's lifecycle(Catch had already been ceased, all the data I recorded was gone). 248 | 249 | The only thing I can see is *Google Calendar*. although they closed *Google's reader*, *Google Calendar* is the best *time tracker* I have ever seen. 250 | 251 | But, it's just a tracker, not a hacker. 252 | 253 | Here are some ways I'm thinking about: 254 | 255 | 1. Insert [Pomodoro](http://www.amazon.com/The-Pomodoro-Technique-Francesco-Cirillo/dp/1445219948/ref=pd_sim_b_3) into *Google Calendar* 256 | 1. Analyse all the Event, and generate a chart 257 | -------------------------------------------------------------------------------- /TimeHarker-OSX.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6E4B6C4E19BCAF13008D4968 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6EF5085319A5971F00BE8207 /* MainMenu.xib */; }; 11 | 6E4B6C4F19BCAF16008D4968 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EF5084F19A5971F00BE8207 /* AppDelegate.swift */; }; 12 | 6EF5084E19A5971F00BE8207 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EF5084D19A5971F00BE8207 /* main.swift */; }; 13 | 6EF5085219A5971F00BE8207 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6EF5085119A5971F00BE8207 /* Images.xcassets */; }; 14 | 6EF5086119A5971F00BE8207 /* TimeHarker_OSXTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EF5086019A5971F00BE8207 /* TimeHarker_OSXTests.swift */; }; 15 | /* End PBXBuildFile section */ 16 | 17 | /* Begin PBXContainerItemProxy section */ 18 | 6EF5085B19A5971F00BE8207 /* PBXContainerItemProxy */ = { 19 | isa = PBXContainerItemProxy; 20 | containerPortal = 6EF5084019A5971F00BE8207 /* Project object */; 21 | proxyType = 1; 22 | remoteGlobalIDString = 6EF5084719A5971F00BE8207; 23 | remoteInfo = "TimeHarker-OSX"; 24 | }; 25 | /* End PBXContainerItemProxy section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 6EF5084819A5971F00BE8207 /* TimeHarker-OSX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TimeHarker-OSX.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 6EF5084C19A5971F00BE8207 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 6EF5084D19A5971F00BE8207 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; 31 | 6EF5084F19A5971F00BE8207 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | 6EF5085119A5971F00BE8207 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 33 | 6EF5085419A5971F00BE8207 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 34 | 6EF5085A19A5971F00BE8207 /* TimeHarker-OSXTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TimeHarker-OSXTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 6EF5085F19A5971F00BE8207 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 6EF5086019A5971F00BE8207 /* TimeHarker_OSXTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeHarker_OSXTests.swift; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | 6EF5084519A5971F00BE8207 /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | 6EF5085719A5971F00BE8207 /* Frameworks */ = { 48 | isa = PBXFrameworksBuildPhase; 49 | buildActionMask = 2147483647; 50 | files = ( 51 | ); 52 | runOnlyForDeploymentPostprocessing = 0; 53 | }; 54 | /* End PBXFrameworksBuildPhase section */ 55 | 56 | /* Begin PBXGroup section */ 57 | 6EF5083F19A5971F00BE8207 = { 58 | isa = PBXGroup; 59 | children = ( 60 | 6EF5084A19A5971F00BE8207 /* TimeHarker-OSX */, 61 | 6EF5085D19A5971F00BE8207 /* TimeHarker-OSXTests */, 62 | 6EF5084919A5971F00BE8207 /* Products */, 63 | ); 64 | sourceTree = ""; 65 | }; 66 | 6EF5084919A5971F00BE8207 /* Products */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | 6EF5084819A5971F00BE8207 /* TimeHarker-OSX.app */, 70 | 6EF5085A19A5971F00BE8207 /* TimeHarker-OSXTests.xctest */, 71 | ); 72 | name = Products; 73 | sourceTree = ""; 74 | }; 75 | 6EF5084A19A5971F00BE8207 /* TimeHarker-OSX */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 6EF5084F19A5971F00BE8207 /* AppDelegate.swift */, 79 | 6EF5085119A5971F00BE8207 /* Images.xcassets */, 80 | 6EF5085319A5971F00BE8207 /* MainMenu.xib */, 81 | 6EF5084B19A5971F00BE8207 /* Supporting Files */, 82 | ); 83 | path = "TimeHarker-OSX"; 84 | sourceTree = ""; 85 | }; 86 | 6EF5084B19A5971F00BE8207 /* Supporting Files */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 6EF5084C19A5971F00BE8207 /* Info.plist */, 90 | 6EF5084D19A5971F00BE8207 /* main.swift */, 91 | ); 92 | name = "Supporting Files"; 93 | sourceTree = ""; 94 | }; 95 | 6EF5085D19A5971F00BE8207 /* TimeHarker-OSXTests */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 6EF5086019A5971F00BE8207 /* TimeHarker_OSXTests.swift */, 99 | 6EF5085E19A5971F00BE8207 /* Supporting Files */, 100 | ); 101 | path = "TimeHarker-OSXTests"; 102 | sourceTree = ""; 103 | }; 104 | 6EF5085E19A5971F00BE8207 /* Supporting Files */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 6EF5085F19A5971F00BE8207 /* Info.plist */, 108 | ); 109 | name = "Supporting Files"; 110 | sourceTree = ""; 111 | }; 112 | /* End PBXGroup section */ 113 | 114 | /* Begin PBXNativeTarget section */ 115 | 6EF5084719A5971F00BE8207 /* TimeHarker-OSX */ = { 116 | isa = PBXNativeTarget; 117 | buildConfigurationList = 6EF5086419A5971F00BE8207 /* Build configuration list for PBXNativeTarget "TimeHarker-OSX" */; 118 | buildPhases = ( 119 | 6EF5084419A5971F00BE8207 /* Sources */, 120 | 6EF5084519A5971F00BE8207 /* Frameworks */, 121 | 6EF5084619A5971F00BE8207 /* Resources */, 122 | ); 123 | buildRules = ( 124 | ); 125 | dependencies = ( 126 | ); 127 | name = "TimeHarker-OSX"; 128 | productName = "TimeHarker-OSX"; 129 | productReference = 6EF5084819A5971F00BE8207 /* TimeHarker-OSX.app */; 130 | productType = "com.apple.product-type.application"; 131 | }; 132 | 6EF5085919A5971F00BE8207 /* TimeHarker-OSXTests */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 6EF5086719A5971F00BE8207 /* Build configuration list for PBXNativeTarget "TimeHarker-OSXTests" */; 135 | buildPhases = ( 136 | 6EF5085619A5971F00BE8207 /* Sources */, 137 | 6EF5085719A5971F00BE8207 /* Frameworks */, 138 | 6EF5085819A5971F00BE8207 /* Resources */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | 6EF5085C19A5971F00BE8207 /* PBXTargetDependency */, 144 | ); 145 | name = "TimeHarker-OSXTests"; 146 | productName = "TimeHarker-OSXTests"; 147 | productReference = 6EF5085A19A5971F00BE8207 /* TimeHarker-OSXTests.xctest */; 148 | productType = "com.apple.product-type.bundle.unit-test"; 149 | }; 150 | /* End PBXNativeTarget section */ 151 | 152 | /* Begin PBXProject section */ 153 | 6EF5084019A5971F00BE8207 /* Project object */ = { 154 | isa = PBXProject; 155 | attributes = { 156 | LastUpgradeCheck = 0600; 157 | ORGANIZATIONNAME = artwalk; 158 | TargetAttributes = { 159 | 6EF5084719A5971F00BE8207 = { 160 | CreatedOnToolsVersion = 6.0; 161 | }; 162 | 6EF5085919A5971F00BE8207 = { 163 | CreatedOnToolsVersion = 6.0; 164 | TestTargetID = 6EF5084719A5971F00BE8207; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 6EF5084319A5971F00BE8207 /* Build configuration list for PBXProject "TimeHarker-OSX" */; 169 | compatibilityVersion = "Xcode 3.2"; 170 | developmentRegion = English; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 6EF5083F19A5971F00BE8207; 177 | productRefGroup = 6EF5084919A5971F00BE8207 /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 6EF5084719A5971F00BE8207 /* TimeHarker-OSX */, 182 | 6EF5085919A5971F00BE8207 /* TimeHarker-OSXTests */, 183 | ); 184 | }; 185 | /* End PBXProject section */ 186 | 187 | /* Begin PBXResourcesBuildPhase section */ 188 | 6EF5084619A5971F00BE8207 /* Resources */ = { 189 | isa = PBXResourcesBuildPhase; 190 | buildActionMask = 2147483647; 191 | files = ( 192 | 6EF5085219A5971F00BE8207 /* Images.xcassets in Resources */, 193 | 6E4B6C4E19BCAF13008D4968 /* MainMenu.xib in Resources */, 194 | ); 195 | runOnlyForDeploymentPostprocessing = 0; 196 | }; 197 | 6EF5085819A5971F00BE8207 /* Resources */ = { 198 | isa = PBXResourcesBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXResourcesBuildPhase section */ 205 | 206 | /* Begin PBXSourcesBuildPhase section */ 207 | 6EF5084419A5971F00BE8207 /* Sources */ = { 208 | isa = PBXSourcesBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | 6E4B6C4F19BCAF16008D4968 /* AppDelegate.swift in Sources */, 212 | 6EF5084E19A5971F00BE8207 /* main.swift in Sources */, 213 | ); 214 | runOnlyForDeploymentPostprocessing = 0; 215 | }; 216 | 6EF5085619A5971F00BE8207 /* Sources */ = { 217 | isa = PBXSourcesBuildPhase; 218 | buildActionMask = 2147483647; 219 | files = ( 220 | 6EF5086119A5971F00BE8207 /* TimeHarker_OSXTests.swift in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | /* End PBXSourcesBuildPhase section */ 225 | 226 | /* Begin PBXTargetDependency section */ 227 | 6EF5085C19A5971F00BE8207 /* PBXTargetDependency */ = { 228 | isa = PBXTargetDependency; 229 | target = 6EF5084719A5971F00BE8207 /* TimeHarker-OSX */; 230 | targetProxy = 6EF5085B19A5971F00BE8207 /* PBXContainerItemProxy */; 231 | }; 232 | /* End PBXTargetDependency section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 6EF5085319A5971F00BE8207 /* MainMenu.xib */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 6EF5085419A5971F00BE8207 /* Base */, 239 | ); 240 | name = MainMenu.xib; 241 | sourceTree = ""; 242 | }; 243 | /* End PBXVariantGroup section */ 244 | 245 | /* Begin XCBuildConfiguration section */ 246 | 6EF5086219A5971F00BE8207 /* Debug */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | ALWAYS_SEARCH_USER_PATHS = NO; 250 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 251 | CLANG_CXX_LIBRARY = "libc++"; 252 | CLANG_ENABLE_MODULES = YES; 253 | CLANG_ENABLE_OBJC_ARC = YES; 254 | CLANG_WARN_BOOL_CONVERSION = YES; 255 | CLANG_WARN_CONSTANT_CONVERSION = YES; 256 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 257 | CLANG_WARN_EMPTY_BODY = YES; 258 | CLANG_WARN_ENUM_CONVERSION = YES; 259 | CLANG_WARN_INT_CONVERSION = YES; 260 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 261 | CLANG_WARN_UNREACHABLE_CODE = YES; 262 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 263 | CODE_SIGN_IDENTITY = "-"; 264 | COPY_PHASE_STRIP = NO; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | GCC_C_LANGUAGE_STANDARD = gnu99; 267 | GCC_DYNAMIC_NO_PIC = NO; 268 | GCC_OPTIMIZATION_LEVEL = 0; 269 | GCC_PREPROCESSOR_DEFINITIONS = ( 270 | "DEBUG=1", 271 | "$(inherited)", 272 | ); 273 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 274 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 275 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 276 | GCC_WARN_UNDECLARED_SELECTOR = YES; 277 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 278 | GCC_WARN_UNUSED_FUNCTION = YES; 279 | GCC_WARN_UNUSED_VARIABLE = YES; 280 | MACOSX_DEPLOYMENT_TARGET = 10.9; 281 | MTL_ENABLE_DEBUG_INFO = YES; 282 | ONLY_ACTIVE_ARCH = YES; 283 | SDKROOT = macosx; 284 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 285 | }; 286 | name = Debug; 287 | }; 288 | 6EF5086319A5971F00BE8207 /* Release */ = { 289 | isa = XCBuildConfiguration; 290 | buildSettings = { 291 | ALWAYS_SEARCH_USER_PATHS = NO; 292 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 293 | CLANG_CXX_LIBRARY = "libc++"; 294 | CLANG_ENABLE_MODULES = YES; 295 | CLANG_ENABLE_OBJC_ARC = YES; 296 | CLANG_WARN_BOOL_CONVERSION = YES; 297 | CLANG_WARN_CONSTANT_CONVERSION = YES; 298 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 299 | CLANG_WARN_EMPTY_BODY = YES; 300 | CLANG_WARN_ENUM_CONVERSION = YES; 301 | CLANG_WARN_INT_CONVERSION = YES; 302 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 303 | CLANG_WARN_UNREACHABLE_CODE = YES; 304 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 305 | CODE_SIGN_IDENTITY = "-"; 306 | COPY_PHASE_STRIP = YES; 307 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 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 | MACOSX_DEPLOYMENT_TARGET = 10.9; 318 | MTL_ENABLE_DEBUG_INFO = NO; 319 | SDKROOT = macosx; 320 | }; 321 | name = Release; 322 | }; 323 | 6EF5086519A5971F00BE8207 /* Debug */ = { 324 | isa = XCBuildConfiguration; 325 | buildSettings = { 326 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 327 | COMBINE_HIDPI_IMAGES = YES; 328 | INFOPLIST_FILE = "TimeHarker-OSX/Info.plist"; 329 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 330 | MACOSX_DEPLOYMENT_TARGET = 10.9; 331 | PRODUCT_NAME = "$(TARGET_NAME)"; 332 | }; 333 | name = Debug; 334 | }; 335 | 6EF5086619A5971F00BE8207 /* Release */ = { 336 | isa = XCBuildConfiguration; 337 | buildSettings = { 338 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 339 | COMBINE_HIDPI_IMAGES = YES; 340 | INFOPLIST_FILE = "TimeHarker-OSX/Info.plist"; 341 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 342 | MACOSX_DEPLOYMENT_TARGET = 10.9; 343 | PRODUCT_NAME = "$(TARGET_NAME)"; 344 | }; 345 | name = Release; 346 | }; 347 | 6EF5086819A5971F00BE8207 /* Debug */ = { 348 | isa = XCBuildConfiguration; 349 | buildSettings = { 350 | BUNDLE_LOADER = "$(TEST_HOST)"; 351 | COMBINE_HIDPI_IMAGES = YES; 352 | FRAMEWORK_SEARCH_PATHS = ( 353 | "$(DEVELOPER_FRAMEWORKS_DIR)", 354 | "$(inherited)", 355 | ); 356 | GCC_PREPROCESSOR_DEFINITIONS = ( 357 | "DEBUG=1", 358 | "$(inherited)", 359 | ); 360 | INFOPLIST_FILE = "TimeHarker-OSXTests/Info.plist"; 361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 362 | PRODUCT_NAME = "$(TARGET_NAME)"; 363 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TimeHarker-OSX.app/Contents/MacOS/TimeHarker-OSX"; 364 | }; 365 | name = Debug; 366 | }; 367 | 6EF5086919A5971F00BE8207 /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | buildSettings = { 370 | BUNDLE_LOADER = "$(TEST_HOST)"; 371 | COMBINE_HIDPI_IMAGES = YES; 372 | FRAMEWORK_SEARCH_PATHS = ( 373 | "$(DEVELOPER_FRAMEWORKS_DIR)", 374 | "$(inherited)", 375 | ); 376 | INFOPLIST_FILE = "TimeHarker-OSXTests/Info.plist"; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 378 | PRODUCT_NAME = "$(TARGET_NAME)"; 379 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TimeHarker-OSX.app/Contents/MacOS/TimeHarker-OSX"; 380 | }; 381 | name = Release; 382 | }; 383 | /* End XCBuildConfiguration section */ 384 | 385 | /* Begin XCConfigurationList section */ 386 | 6EF5084319A5971F00BE8207 /* Build configuration list for PBXProject "TimeHarker-OSX" */ = { 387 | isa = XCConfigurationList; 388 | buildConfigurations = ( 389 | 6EF5086219A5971F00BE8207 /* Debug */, 390 | 6EF5086319A5971F00BE8207 /* Release */, 391 | ); 392 | defaultConfigurationIsVisible = 0; 393 | defaultConfigurationName = Release; 394 | }; 395 | 6EF5086419A5971F00BE8207 /* Build configuration list for PBXNativeTarget "TimeHarker-OSX" */ = { 396 | isa = XCConfigurationList; 397 | buildConfigurations = ( 398 | 6EF5086519A5971F00BE8207 /* Debug */, 399 | 6EF5086619A5971F00BE8207 /* Release */, 400 | ); 401 | defaultConfigurationIsVisible = 0; 402 | defaultConfigurationName = Release; 403 | }; 404 | 6EF5086719A5971F00BE8207 /* Build configuration list for PBXNativeTarget "TimeHarker-OSXTests" */ = { 405 | isa = XCConfigurationList; 406 | buildConfigurations = ( 407 | 6EF5086819A5971F00BE8207 /* Debug */, 408 | 6EF5086919A5971F00BE8207 /* Release */, 409 | ); 410 | defaultConfigurationIsVisible = 0; 411 | defaultConfigurationName = Release; 412 | }; 413 | /* End XCConfigurationList section */ 414 | }; 415 | rootObject = 6EF5084019A5971F00BE8207 /* Project object */; 416 | } 417 | -------------------------------------------------------------------------------- /TimeHarker-OSX.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TimeHarker-OSX/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TimeHarker-OSX 4 | // 5 | // Created by artwalk on 8/21/14. 6 | // Copyright (c) 2014 artwalk. All rights reserved. 7 | // 8 | 9 | 10 | import Cocoa 11 | 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | @IBOutlet weak var window: NSWindow! 15 | 16 | @IBOutlet weak var reminderView: NSView! 17 | @IBOutlet weak var iCalView: NSView! 18 | @IBOutlet weak var segmentedControl: NSSegmentedControl! 19 | 20 | 21 | @IBOutlet weak var pomoTaskTextField: NSTextField! 22 | @IBOutlet weak var pomoStartButton: NSButton! 23 | @IBOutlet weak var pomoProgressIndicator: NSProgressIndicator! 24 | @IBOutlet weak var pomoTimeTextField: NSTextField! 25 | @IBOutlet weak var pomoTimeSlider: NSSlider! 26 | 27 | var timer:NSTimer? 28 | var started = false 29 | var startDateTime = NSDate() 30 | 31 | @IBAction func pomoTimeSliderAction(slider: NSSlider) { 32 | var i = slider.integerValue 33 | 34 | self.pomoTimeTextField.stringValue = String(format: "%02d:00", i%60) 35 | } 36 | 37 | @IBAction func pomoStartBtnAction(sender: NSButton) { 38 | if started { 39 | timer?.invalidate() 40 | } else { 41 | startDateTime = NSDate() 42 | timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "updateProgress", userInfo: nil, repeats: true) 43 | } 44 | 45 | started = !started 46 | } 47 | 48 | func updateProgress() { 49 | let interval = NSDate().timeIntervalSinceDate(startDateTime) 50 | let i = pomoTimeSlider.integerValue*60 - Int(interval) 51 | let s = String(format: "- %02d:%02d", i/60, i%60) 52 | 53 | pomoProgressIndicator.doubleValue = interval/60*100/pomoTimeSlider.doubleValue 54 | self.pomoTimeTextField.stringValue = s 55 | } 56 | 57 | func applicationDidFinishLaunching(aNotification: NSNotification?) { 58 | // Insert code here to initialize your application 59 | var i = pomoTimeSlider.integerValue 60 | self.pomoTimeTextField.stringValue = String(format: "%02d:00", i%60) 61 | } 62 | 63 | func applicationWillTerminate(aNotification: NSNotification?) { 64 | // Insert code here to tear down your application 65 | } 66 | 67 | @IBAction func segmentedControlAction(sender: NSSegmentedControl) { 68 | var switcher = sender.selectedSegment == 0 ? false : true 69 | 70 | self.showView(switcher) 71 | } 72 | 73 | func showView (switcher:Bool) { 74 | self.reminderView.hidden = switcher 75 | self.iCalView.hidden = !switcher 76 | } 77 | 78 | } 79 | 80 | -------------------------------------------------------------------------------- /TimeHarker-OSX/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 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 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | Default 548 | 549 | 550 | 551 | 552 | 553 | 554 | Left to Right 555 | 556 | 557 | 558 | 559 | 560 | 561 | Right to Left 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | Default 573 | 574 | 575 | 576 | 577 | 578 | 579 | Left to Right 580 | 581 | 582 | 583 | 584 | 585 | 586 | Right to Left 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 764 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | -------------------------------------------------------------------------------- /TimeHarker-OSX/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /TimeHarker-OSX/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | io.artwalk.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2014 artwalk. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /TimeHarker-OSX/main.swift: -------------------------------------------------------------------------------- 1 | // 2 | // main.swift 3 | // TimeHarker-OSX 4 | // 5 | // Created by artwalk on 8/21/14. 6 | // Copyright (c) 2014 artwalk. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | NSApplicationMain(C_ARGC, C_ARGV) 12 | -------------------------------------------------------------------------------- /TimeHarker-OSXTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | io.artwalk.$(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 | -------------------------------------------------------------------------------- /TimeHarker-OSXTests/TimeHarker_OSXTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeHarker_OSXTests.swift 3 | // TimeHarker-OSXTests 4 | // 5 | // Created by artwalk on 8/21/14. 6 | // Copyright (c) 2014 artwalk. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import XCTest 11 | 12 | class TimeHarker_OSXTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | --------------------------------------------------------------------------------