appjam 0.1.8.8 → 0.1.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/README.md +22 -62
  2. data/lib/appjam/generators/gist.yml +1 -1
  3. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.pbxproj +1166 -482
  4. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.xcworkspace/xcuserdata/eiffel.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  5. data/lib/appjam/generators/templates/blank/EiffelApplication/EiffelApplication-Prefix.pch.tt +26 -0
  6. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenu.h +52 -0
  7. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenu.m +412 -0
  8. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenuItem.h +44 -0
  9. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenuItem.m +97 -0
  10. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton-highlighted.png +0 -0
  11. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton-highlighted@2x.png +0 -0
  12. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton.png +0 -0
  13. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton@2x.png +0 -0
  14. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem-highlighted.png +0 -0
  15. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem-highlighted@2x.png +0 -0
  16. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem.png +0 -0
  17. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem@2x.png +0 -0
  18. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus-highlighted.png +0 -0
  19. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus-highlighted@2x.png +0 -0
  20. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus.png +0 -0
  21. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus@2x.png +0 -0
  22. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-star.png +0 -0
  23. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-star@2x.png +0 -0
  24. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/CMPopTipView/CMPopTipView.h +167 -0
  25. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/CMPopTipView/CMPopTipView.m +639 -0
  26. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/FXLabel/FXLabel.h +97 -0
  27. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/FXLabel/FXLabel.m +1080 -0
  28. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.h +451 -0
  29. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.m +865 -0
  30. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.h +42 -0
  31. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.m +56 -0
  32. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FoldView.h +90 -0
  33. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FoldView.m +316 -0
  34. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/MultiFoldView.h +104 -0
  35. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/MultiFoldView.m +516 -0
  36. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldConstants.h +49 -0
  37. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldNavigationController.h +18 -0
  38. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldNavigationController.m +88 -0
  39. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_left.png +0 -0
  40. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_left@2x.png +0 -0
  41. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_right.png +0 -0
  42. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_right@2x.png +0 -0
  43. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldSwipeHintView.h +25 -0
  44. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldSwipeHintView.m +76 -0
  45. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldView.h +131 -0
  46. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldView.m +941 -0
  47. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/Resources/swipe_guide.psd +0 -0
  48. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/Resources/swipe_guide2.psd +0 -0
  49. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/ShadowView.h +46 -0
  50. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/ShadowView.m +82 -0
  51. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/TouchThroughUIView.h +39 -0
  52. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/TouchThroughUIView.m +72 -0
  53. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/UIView+Screenshot.h +42 -0
  54. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/UIView+Screenshot.m +100 -0
  55. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/NSBubbleData.h +34 -0
  56. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/NSBubbleData.m +140 -0
  57. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleHeaderTableViewCell.h +17 -0
  58. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleHeaderTableViewCell.m +57 -0
  59. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableView.h +30 -0
  60. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableView.m +233 -0
  61. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewCell.h +19 -0
  62. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewCell.m +122 -0
  63. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewDataSource.h +24 -0
  64. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTypingTableViewCell.h +20 -0
  65. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTypingTableViewCell.m +56 -0
  66. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleMine.png +0 -0
  67. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleMine@2x.png +0 -0
  68. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleSomeone.png +0 -0
  69. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleSomeone@2x.png +0 -0
  70. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/missingAvatar.png +0 -0
  71. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/missingAvatar@2x.png +0 -0
  72. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingMine.png +0 -0
  73. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingMine@2x.png +0 -0
  74. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingSomeone.png +0 -0
  75. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingSomeone@2x.png +0 -0
  76. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIGlossyButton.h +124 -0
  77. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIGlossyButton.m +545 -0
  78. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIView+LayerEffects.h +22 -0
  79. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIView+LayerEffects.m +32 -0
  80. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFIncrementalStore.h +344 -0
  81. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFIncrementalStore.m +848 -0
  82. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFRESTClient.h +135 -0
  83. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFRESTClient.m +441 -0
  84. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/NSString+InflectorKit.h +40 -0
  85. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/NSString+InflectorKit.m +36 -0
  86. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/TTTStringInflector.h +76 -0
  87. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/TTTStringInflector.m +270 -0
  88. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/MKAnnotationView+WebCache.h +95 -0
  89. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/MKAnnotationView+WebCache.m +78 -0
  90. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDImageCache.h +144 -0
  91. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDImageCache.m +311 -0
  92. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageCompat.h +40 -0
  93. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageCompat.m +54 -0
  94. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDecoder.h +18 -0
  95. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDecoder.m +70 -0
  96. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloader.h +102 -0
  97. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloader.m +226 -0
  98. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloaderOperation.h +25 -0
  99. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloaderOperation.m +339 -0
  100. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageManager.h +167 -0
  101. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageManager.m +244 -0
  102. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageOperation.h +15 -0
  103. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImagePrefetcher.h +58 -0
  104. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImagePrefetcher.m +127 -0
  105. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIButton+WebCache.h +173 -0
  106. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIButton+WebCache.m +129 -0
  107. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIImageView+WebCache.h +140 -0
  108. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIImageView+WebCache.m +84 -0
  109. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationProgram.h +28 -0
  110. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationSequence.h +28 -0
  111. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationStep.h +49 -0
  112. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationProgram.m +100 -0
  113. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationSequence.m +85 -0
  114. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationStep.m +122 -0
  115. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaAsyncSocket/GCDAsyncSocket.h +1074 -0
  116. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaAsyncSocket/GCDAsyncSocket.m +7430 -0
  117. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDData.h +14 -0
  118. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDData.m +158 -0
  119. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDNumber.h +12 -0
  120. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDNumber.m +88 -0
  121. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDRange.h +56 -0
  122. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDRange.m +104 -0
  123. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPAuthenticationRequest.h +45 -0
  124. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPAuthenticationRequest.m +195 -0
  125. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPConnection.h +119 -0
  126. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPConnection.m +2708 -0
  127. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPLogging.h +136 -0
  128. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPMessage.h +48 -0
  129. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPMessage.m +113 -0
  130. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPResponse.h +149 -0
  131. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPServer.h +205 -0
  132. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPServer.m +772 -0
  133. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.h +65 -0
  134. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.m +529 -0
  135. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.h +33 -0
  136. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.m +86 -0
  137. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.h +23 -0
  138. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.m +211 -0
  139. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.h +75 -0
  140. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.m +405 -0
  141. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDataResponse.h +13 -0
  142. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDataResponse.m +79 -0
  143. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.h +52 -0
  144. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.m +292 -0
  145. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.h +9 -0
  146. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.m +38 -0
  147. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPFileResponse.h +25 -0
  148. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPFileResponse.m +237 -0
  149. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.h +12 -0
  150. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.m +73 -0
  151. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/WebSocket.h +105 -0
  152. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/WebSocket.m +791 -0
  153. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.h +7 -0
  154. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.m +160 -0
  155. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.h +11 -0
  156. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.m +372 -0
  157. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.h +7 -0
  158. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.m +49 -0
  159. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.h +8 -0
  160. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.m +69 -0
  161. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHpple.h +54 -0
  162. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHpple.m +102 -0
  163. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHppleElement.h +103 -0
  164. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHppleElement.m +200 -0
  165. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/XPathQuery.h +10 -0
  166. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/XPathQuery.m +197 -0
  167. data/lib/appjam/version.rb +1 -1
  168. metadata +164 -3
@@ -0,0 +1,129 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import "UIButton+WebCache.h"
10
+ #import "objc/runtime.h"
11
+
12
+ static char operationKey;
13
+
14
+ @implementation UIButton (WebCache)
15
+
16
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state
17
+ {
18
+ [self setImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];
19
+ }
20
+
21
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder
22
+ {
23
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];
24
+ }
25
+
26
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options
27
+ {
28
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];
29
+ }
30
+
31
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock
32
+ {
33
+ [self setImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];
34
+ }
35
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock
36
+ {
37
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];
38
+ }
39
+
40
+ - (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock
41
+ {
42
+ [self cancelCurrentImageLoad];
43
+
44
+ [self setImage:placeholder forState:state];
45
+
46
+ if (url)
47
+ {
48
+ __weak UIButton *wself = self;
49
+ id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
50
+ {
51
+ __strong UIButton *sself = wself;
52
+ if (!sself) return;
53
+ if (image)
54
+ {
55
+ [sself setImage:image forState:state];
56
+ }
57
+ if (completedBlock && finished)
58
+ {
59
+ completedBlock(image, error, cacheType);
60
+ }
61
+ }];
62
+ objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
63
+ }
64
+ }
65
+
66
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state
67
+ {
68
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];
69
+ }
70
+
71
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder
72
+ {
73
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];
74
+ }
75
+
76
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options
77
+ {
78
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];
79
+ }
80
+
81
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock
82
+ {
83
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];
84
+ }
85
+
86
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock
87
+ {
88
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];
89
+ }
90
+
91
+ - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock
92
+ {
93
+ [self cancelCurrentImageLoad];
94
+
95
+ [self setBackgroundImage:placeholder forState:state];
96
+
97
+ if (url)
98
+ {
99
+ __weak UIButton *wself = self;
100
+ id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
101
+ {
102
+ __strong UIButton *sself = wself;
103
+ if (!sself) return;
104
+ if (image)
105
+ {
106
+ [sself setBackgroundImage:image forState:state];
107
+ }
108
+ if (completedBlock && finished)
109
+ {
110
+ completedBlock(image, error, cacheType);
111
+ }
112
+ }];
113
+ objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
114
+ }
115
+ }
116
+
117
+
118
+ - (void)cancelCurrentImageLoad
119
+ {
120
+ // Cancel in progress downloader from queue
121
+ id<SDWebImageOperation> operation = objc_getAssociatedObject(self, &operationKey);
122
+ if (operation)
123
+ {
124
+ [operation cancel];
125
+ objc_setAssociatedObject(self, &operationKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
126
+ }
127
+ }
128
+
129
+ @end
@@ -0,0 +1,140 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import "SDWebImageCompat.h"
10
+ #import "SDWebImageManager.h"
11
+
12
+ /**
13
+ * Integrates SDWebImage async downloading and caching of remote images with UIImageView.
14
+ *
15
+ * Usage with a UITableViewCell sub-class:
16
+ *
17
+ * #import <SDWebImage/UIImageView+WebCache.h>
18
+ *
19
+ * ...
20
+ *
21
+ * - (UITableViewCell *)tableView:(UITableView *)tableView
22
+ * cellForRowAtIndexPath:(NSIndexPath *)indexPath
23
+ * {
24
+ * static NSString *MyIdentifier = @"MyIdentifier";
25
+ *
26
+ * UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
27
+ *
28
+ * if (cell == nil)
29
+ * {
30
+ * cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
31
+ * reuseIdentifier:MyIdentifier] autorelease];
32
+ * }
33
+ *
34
+ * // Here we use the provided setImageWithURL: method to load the web image
35
+ * // Ensure you use a placeholder image otherwise cells will be initialized with no image
36
+ * [cell.imageView setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"]
37
+ * placeholderImage:[UIImage imageNamed:@"placeholder"]];
38
+ *
39
+ * cell.textLabel.text = @"My Text";
40
+ * return cell;
41
+ * }
42
+ *
43
+ */
44
+ @interface UIImageView (WebCache)
45
+
46
+ /**
47
+ * Set the imageView `image` with an `url`.
48
+ *
49
+ * The downloand is asynchronous and cached.
50
+ *
51
+ * @param url The url for the image.
52
+ */
53
+ - (void)setImageWithURL:(NSURL *)url;
54
+
55
+ /**
56
+ * Set the imageView `image` with an `url` and a placeholder.
57
+ *
58
+ * The downloand is asynchronous and cached.
59
+ *
60
+ * @param url The url for the image.
61
+ * @param placeholder The image to be set initially, until the image request finishes.
62
+ * @see setImageWithURL:placeholderImage:options:
63
+ */
64
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
65
+
66
+ /**
67
+ * Set the imageView `image` with an `url`, placeholder and custom options.
68
+ *
69
+ * The downloand is asynchronous and cached.
70
+ *
71
+ * @param url The url for the image.
72
+ * @param placeholder The image to be set initially, until the image request finishes.
73
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
74
+ */
75
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
76
+
77
+ /**
78
+ * Set the imageView `image` with an `url`.
79
+ *
80
+ * The downloand is asynchronous and cached.
81
+ *
82
+ * @param url The url for the image.
83
+ * @param completedBlock A block called when operation has been completed. This block as no return value
84
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
85
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
86
+ * indicating if the image was retrived from the local cache of from the network.
87
+ */
88
+ - (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock;
89
+
90
+ /**
91
+ * Set the imageView `image` with an `url`, placeholder.
92
+ *
93
+ * The downloand is asynchronous and cached.
94
+ *
95
+ * @param url The url for the image.
96
+ * @param placeholder The image to be set initially, until the image request finishes.
97
+ * @param completedBlock A block called when operation has been completed. This block as no return value
98
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
99
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
100
+ * indicating if the image was retrived from the local cache of from the network.
101
+ */
102
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
103
+
104
+ /**
105
+ * Set the imageView `image` with an `url`, placeholder and custom options.
106
+ *
107
+ * The downloand is asynchronous and cached.
108
+ *
109
+ * @param url The url for the image.
110
+ * @param placeholder The image to be set initially, until the image request finishes.
111
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
112
+ * @param completedBlock A block called when operation has been completed. This block as no return value
113
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
114
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
115
+ * indicating if the image was retrived from the local cache of from the network.
116
+ */
117
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
118
+
119
+ /**
120
+ * Set the imageView `image` with an `url`, placeholder and custom options.
121
+ *
122
+ * The downloand is asynchronous and cached.
123
+ *
124
+ * @param url The url for the image.
125
+ * @param placeholder The image to be set initially, until the image request finishes.
126
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
127
+ * @param progressBlock A block called while image is downloading
128
+ * @param completedBlock A block called when operation has been completed. This block as no return value
129
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
130
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
131
+ * indicating if the image was retrived from the local cache of from the network.
132
+ */
133
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock;
134
+
135
+ /**
136
+ * Cancel the current download
137
+ */
138
+ - (void)cancelCurrentImageLoad;
139
+
140
+ @end
@@ -0,0 +1,84 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import "UIImageView+WebCache.h"
10
+ #import "objc/runtime.h"
11
+
12
+ static char operationKey;
13
+
14
+ @implementation UIImageView (WebCache)
15
+
16
+ - (void)setImageWithURL:(NSURL *)url
17
+ {
18
+ [self setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:nil];
19
+ }
20
+
21
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
22
+ {
23
+ [self setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:nil];
24
+ }
25
+
26
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options
27
+ {
28
+ [self setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:nil];
29
+ }
30
+
31
+ - (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock
32
+ {
33
+ [self setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:completedBlock];
34
+ }
35
+
36
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock
37
+ {
38
+ [self setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:completedBlock];
39
+ }
40
+
41
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock
42
+ {
43
+ [self setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:completedBlock];
44
+ }
45
+
46
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock;
47
+ {
48
+ [self cancelCurrentImageLoad];
49
+
50
+ self.image = placeholder;
51
+
52
+ if (url)
53
+ {
54
+ __weak UIImageView *wself = self;
55
+ id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
56
+ {
57
+ __strong UIImageView *sself = wself;
58
+ if (!sself) return;
59
+ if (image)
60
+ {
61
+ sself.image = image;
62
+ [sself setNeedsLayout];
63
+ }
64
+ if (completedBlock && finished)
65
+ {
66
+ completedBlock(image, error, cacheType);
67
+ }
68
+ }];
69
+ objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
70
+ }
71
+ }
72
+
73
+ - (void)cancelCurrentImageLoad
74
+ {
75
+ // Cancel in progress downloader from queue
76
+ id<SDWebImageOperation> operation = objc_getAssociatedObject(self, &operationKey);
77
+ if (operation)
78
+ {
79
+ [operation cancel];
80
+ objc_setAssociatedObject(self, &operationKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
81
+ }
82
+ }
83
+
84
+ @end
@@ -0,0 +1,28 @@
1
+
2
+ // Created by Karsten Litsche on 25.03.12.
3
+ // Copyright (c) 2012 compeople AG. All rights reserved.
4
+
5
+ #import <Foundation/Foundation.h>
6
+ #import "CPAnimationStep.h"
7
+
8
+ /**
9
+ A CPAnimationProgram defines a program of CPAnimationStep objects, which can
10
+ be `-run` animatedly or non-animatedly.
11
+
12
+ The delay property will be interpreted from start point of the program.
13
+
14
+ CPAnimationProgram implements the Composite design pattern, with CPAnimationStep
15
+ as the base class.
16
+ */
17
+ @interface CPAnimationProgram : CPAnimationStep
18
+
19
+ #pragma mark - constructors
20
+
21
+ + (id) programWithSteps:(CPAnimationStep*)first, ... NS_REQUIRES_NIL_TERMINATION;
22
+
23
+ #pragma mark - properties
24
+
25
+ /** Animations steps */
26
+ @property (nonatomic, strong, readonly) NSArray* steps;
27
+
28
+ @end
@@ -0,0 +1,28 @@
1
+
2
+ // Created by Yang Meyer on 26.07.11.
3
+ // Copyright 2011-2012 compeople AG. All rights reserved.
4
+
5
+ #import <Foundation/Foundation.h>
6
+ #import "CPAnimationStep.h"
7
+
8
+ /**
9
+ A CPAnimationSequence defines a sequence of CPAnimationStep objects, which can
10
+ be `-run` animatedly or non-animatedly.
11
+
12
+ CPAnimationSequence implements the Composite design pattern, with CPAnimationStep
13
+ as the base class.
14
+
15
+ The delay property will be interpreted from end point of the previous step.
16
+ */
17
+ @interface CPAnimationSequence : CPAnimationStep
18
+
19
+ #pragma mark - constructors
20
+
21
+ + (id) sequenceWithSteps:(CPAnimationStep*)first, ... NS_REQUIRES_NIL_TERMINATION;
22
+
23
+ #pragma mark - properties
24
+
25
+ /** Animations steps, from first to last. */
26
+ @property (nonatomic, strong, readonly) NSArray* steps;
27
+
28
+ @end
@@ -0,0 +1,49 @@
1
+
2
+ // Created by Yang Meyer on 26.07.11.
3
+ // Copyright 2011 compeople AG, 2013 Yang Meyer. All rights reserved.
4
+
5
+ #import <Foundation/Foundation.h>
6
+
7
+ /** Generic block type */
8
+ typedef void (^CPAnimationStepBlock)(void);
9
+
10
+ /** Backwards-compatibility */
11
+ typedef CPAnimationStepBlock AnimationStep __deprecated;
12
+
13
+ /**
14
+ A CPAnimationStep defines a single animation object with a delay, duration, execution block and animation options.
15
+ */
16
+ @interface CPAnimationStep : NSObject
17
+
18
+ #pragma mark - constructors
19
+
20
+ + (id) after:(NSTimeInterval)delay
21
+ animate:(CPAnimationStepBlock)step;
22
+
23
+ + (id) for:(NSTimeInterval)duration
24
+ animate:(CPAnimationStepBlock)step;
25
+
26
+ + (id) after:(NSTimeInterval)delay
27
+ for:(NSTimeInterval)duration
28
+ animate:(CPAnimationStepBlock)step;
29
+
30
+ + (id) after:(NSTimeInterval)delay
31
+ for:(NSTimeInterval)duration
32
+ options:(UIViewAnimationOptions)theOptions
33
+ animate:(CPAnimationStepBlock)step;
34
+
35
+ #pragma mark - properties (normally already set by the constructor)
36
+
37
+ @property (nonatomic) NSTimeInterval delay;
38
+ @property (nonatomic) NSTimeInterval duration;
39
+ @property (nonatomic, copy) CPAnimationStepBlock step;
40
+ @property (nonatomic) UIViewAnimationOptions options;
41
+
42
+ #pragma mark - execution
43
+
44
+ /** Starts the step execution. */
45
+ - (void) runAnimated:(BOOL)animated;
46
+ /** Shortcut for [step runAnimated:YES] */
47
+ - (void) run;
48
+
49
+ @end