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,40 @@
1
+ // NSString+InflectorKit.h
2
+ //
3
+ // Copyright (c) 2013 Mattt Thompson (http://mattt.me)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in
13
+ // all copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ // THE SOFTWARE.
22
+
23
+ #import <Foundation/Foundation.h>
24
+
25
+ /**
26
+
27
+ */
28
+ @interface NSString (InflectorKit)
29
+
30
+ /**
31
+
32
+ */
33
+ - (NSString *)singularizedString;
34
+
35
+ /**
36
+
37
+ */
38
+ - (NSString *)pluralizedString;
39
+
40
+ @end
@@ -0,0 +1,36 @@
1
+ // NSString+InflectorKit.m
2
+ //
3
+ // Copyright (c) 2013 Mattt Thompson (http://mattt.me)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in
13
+ // all copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ // THE SOFTWARE.
22
+
23
+ #import "NSString+InflectorKit.h"
24
+ #import "TTTStringInflector.h"
25
+
26
+ @implementation NSString (InflectorKit)
27
+
28
+ - (NSString *)singularizedString {
29
+ return [[TTTStringInflector defaultInflector] singularize:self];
30
+ }
31
+
32
+ - (NSString *)pluralizedString {
33
+ return [[TTTStringInflector defaultInflector] pluralize:self];
34
+ }
35
+
36
+ @end
@@ -0,0 +1,76 @@
1
+ // TTTStringInflector.h
2
+ //
3
+ // Copyright (c) 2013 Mattt Thompson (http://mattt.me)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in
13
+ // all copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ // THE SOFTWARE.
22
+
23
+ #import <Foundation/Foundation.h>
24
+
25
+ /**
26
+
27
+ */
28
+ @interface TTTStringInflector : NSObject
29
+
30
+ /**
31
+
32
+ */
33
+ + (instancetype)defaultInflector;
34
+
35
+ ///=========================
36
+ /// @name Inflecting Strings
37
+ ///=========================
38
+
39
+ /**
40
+
41
+ */
42
+ - (NSString *)singularize:(NSString *)string;
43
+
44
+ /**
45
+
46
+ */
47
+ - (NSString *)pluralize:(NSString *)string;
48
+
49
+ ///===================
50
+ /// @name Adding Rules
51
+ ///===================
52
+
53
+ /**
54
+
55
+ */
56
+ - (void)addSingularRule:(NSString *)rule
57
+ withReplacement:(NSString *)replacement;
58
+
59
+ /**
60
+
61
+ */
62
+ - (void)addPluralRule:(NSString *)rule
63
+ withReplacement:(NSString *)replacement;
64
+
65
+ /**
66
+
67
+ */
68
+ - (void)addIrregularWithSingular:(NSString *)singular
69
+ plural:(NSString *)plural;
70
+
71
+ /**
72
+
73
+ */
74
+ - (void)addUncountable:(NSString *)word;
75
+
76
+ @end
@@ -0,0 +1,270 @@
1
+ // TTTStringInflector.m
2
+ //
3
+ // Copyright (c) 2013 Mattt Thompson (http://mattt.me)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in
13
+ // all copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ // THE SOFTWARE.
22
+
23
+ #import "TTTStringInflector.h"
24
+
25
+ @interface TTTStringInflectionRule : NSObject
26
+
27
+ + (instancetype)ruleWithPattern:(NSString *)pattern
28
+ options:(NSRegularExpressionOptions)options
29
+ replacement:(NSString *)replacement;
30
+
31
+ - (NSUInteger)evaluateString:(NSMutableString *)mutableString;
32
+
33
+ @end
34
+
35
+ #pragma mark -
36
+
37
+ @interface TTTStringInflector (Localization)
38
+ - (void)addPluralizationRulesForEnUSLocale;
39
+ @end
40
+
41
+ #pragma mark -
42
+
43
+ @interface TTTStringInflector ()
44
+ @property (readwrite, nonatomic, strong) NSMutableArray *mutableSingularRules;
45
+ @property (readwrite, nonatomic, strong) NSMutableArray *mutablePluralRules;
46
+ @property (readwrite, nonatomic, strong) NSMutableSet *mutableUncountables;
47
+ @property (readwrite, nonatomic, strong) NSMutableDictionary *mutableIrregularPluralsBySingular;
48
+ @end
49
+
50
+ @implementation TTTStringInflector
51
+
52
+ - (id)init {
53
+ self = [super init];
54
+ if (!self) {
55
+ return nil;
56
+ }
57
+
58
+ self.mutableSingularRules = [[NSMutableArray alloc] init];
59
+ self.mutablePluralRules = [[NSMutableArray alloc] init];
60
+ self.mutableUncountables = [[NSMutableSet alloc] init];
61
+ self.mutableIrregularPluralsBySingular = [[NSMutableDictionary alloc] init];
62
+
63
+ return self;
64
+ }
65
+
66
+ + (instancetype)defaultInflector {
67
+ static id _defaultInflector = nil;
68
+ static dispatch_once_t onceToken;
69
+ dispatch_once(&onceToken, ^{
70
+ _defaultInflector = [[self alloc] init];
71
+ [_defaultInflector addPluralizationRulesForEnUSLocale];
72
+ });
73
+
74
+ return _defaultInflector;
75
+ }
76
+
77
+ - (NSString *)singularize:(NSString *)string {
78
+ if ([self.mutableUncountables containsObject:string]) {
79
+ return string;
80
+ }
81
+
82
+ NSArray *irregularSingulars = [self.mutableIrregularPluralsBySingular allKeysForObject:string];
83
+ if ([irregularSingulars count] > 0) {
84
+ return [irregularSingulars lastObject];
85
+ }
86
+
87
+ __block NSMutableString *mutableString = [string mutableCopy];
88
+ [self.mutableSingularRules enumerateObjectsUsingBlock:^(id rule, NSUInteger idx, BOOL *stop) {
89
+ *stop = !![rule evaluateString:mutableString];
90
+ }];
91
+
92
+ return mutableString;
93
+ }
94
+
95
+ - (NSString *)pluralize:(NSString *)string {
96
+ if ([self.mutableUncountables containsObject:string]) {
97
+ return string;
98
+ }
99
+
100
+ NSString *irregularPlural = [self.mutableIrregularPluralsBySingular objectForKey:string];
101
+ if (irregularPlural) {
102
+ return irregularPlural;
103
+ }
104
+
105
+ __block NSMutableString *mutableString = [string mutableCopy];
106
+ [self.mutablePluralRules enumerateObjectsUsingBlock:^(id rule, NSUInteger idx, BOOL *stop) {
107
+ *stop = !![rule evaluateString:mutableString];
108
+ }];
109
+
110
+ return mutableString;
111
+ }
112
+
113
+ - (void)addSingularRule:(NSString *)rule
114
+ withReplacement:(NSString *)replacement
115
+ {
116
+ [self.mutableUncountables removeObject:rule];
117
+
118
+ [self.mutableSingularRules insertObject:[TTTStringInflectionRule ruleWithPattern:rule options:NSRegularExpressionAnchorsMatchLines | NSRegularExpressionCaseInsensitive | NSRegularExpressionUseUnicodeWordBoundaries replacement:replacement] atIndex:0];
119
+ }
120
+
121
+ - (void)addPluralRule:(NSString *)rule
122
+ withReplacement:(NSString *)replacement
123
+ {
124
+ [self.mutableUncountables removeObject:rule];
125
+ [self.mutableUncountables removeObject:replacement];
126
+
127
+ [self.mutablePluralRules insertObject:[TTTStringInflectionRule ruleWithPattern:rule options:NSRegularExpressionAnchorsMatchLines | NSRegularExpressionCaseInsensitive | NSRegularExpressionUseUnicodeWordBoundaries replacement:replacement] atIndex:0];
128
+ }
129
+
130
+ - (void)addIrregularWithSingular:(NSString *)singular
131
+ plural:(NSString *)plural
132
+ {
133
+ [self.mutableIrregularPluralsBySingular setObject:plural forKey:singular];
134
+ [self.mutableIrregularPluralsBySingular setObject:[plural capitalizedString] forKey:[singular capitalizedString]];
135
+ }
136
+
137
+ - (void)addUncountable:(NSString *)word {
138
+ [self.mutableUncountables addObject:word];
139
+ }
140
+
141
+ @end
142
+
143
+ #pragma mark -
144
+
145
+ @interface TTTStringInflectionRule ()
146
+ @property (readwrite, nonatomic, strong) NSRegularExpression *regularExpression;
147
+ @property (readwrite, nonatomic, copy) NSString *replacement;
148
+ @end
149
+
150
+ @implementation TTTStringInflectionRule
151
+
152
+ + (instancetype)ruleWithPattern:(NSString *)pattern
153
+ options:(NSRegularExpressionOptions)options
154
+ replacement:(NSString *)replacement
155
+ {
156
+ TTTStringInflectionRule *rule = [[TTTStringInflectionRule alloc] init];
157
+
158
+ NSError *error = nil;
159
+ rule.regularExpression = [NSRegularExpression regularExpressionWithPattern:pattern options:options error:&error];
160
+ if (error) {
161
+ return nil;
162
+ }
163
+
164
+ rule.replacement = replacement;
165
+
166
+ return rule;
167
+ }
168
+
169
+ - (NSUInteger)evaluateString:(NSMutableString *)mutableString {
170
+ return [self.regularExpression replaceMatchesInString:mutableString options:0 range:NSMakeRange(0, [mutableString length]) withTemplate:self.replacement];
171
+ }
172
+
173
+ @end
174
+
175
+ #pragma mark -
176
+
177
+ @implementation TTTStringInflector (Localization)
178
+
179
+ /**
180
+ Inflection rules adapted from Active Support
181
+ Copyright (c) 2005-2012 David Heinemeier Hansson
182
+
183
+ Permission is hereby granted, free of charge, to any person obtaining
184
+ a copy of this software and associated documentation files (the
185
+ "Software"), to deal in the Software without restriction, including
186
+ without limitation the rights to use, copy, modify, merge, publish,
187
+ distribute, sublicense, and/or sell copies of the Software, and to
188
+ permit persons to whom the Software is furnished to do so, subject to
189
+ the following conditions:
190
+
191
+ The above copyright notice and this permission notice shall be
192
+ included in all copies or substantial portions of the Software.
193
+
194
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
195
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
196
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
197
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
198
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
199
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
200
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
201
+ */
202
+ - (void)addPluralizationRulesForEnUSLocale {
203
+ [self addPluralRule:@"$" withReplacement:@"s"];
204
+ [self addPluralRule:@"s$" withReplacement:@"s"];
205
+ [self addPluralRule:@"^(ax|test)is$" withReplacement:@"$1es"];
206
+ [self addPluralRule:@"(octop|vir)us$" withReplacement:@"$1i"];
207
+ [self addPluralRule:@"(octop|vir)i$" withReplacement:@"$1i"];
208
+ [self addPluralRule:@"(alias|status)$" withReplacement:@"$1es"];
209
+ [self addPluralRule:@"(bu)s$" withReplacement:@"$1ses"];
210
+ [self addPluralRule:@"(buffal|tomat)o$" withReplacement:@"$1oes"];
211
+ [self addPluralRule:@"([ti])um$" withReplacement:@"$1a"];
212
+ [self addPluralRule:@"([ti])a$" withReplacement:@"$1a"];
213
+ [self addPluralRule:@"sis$" withReplacement:@"ses"];
214
+ [self addPluralRule:@"(?:([^f])fe|([lr])f)$" withReplacement:@"$1$2ves"];
215
+ [self addPluralRule:@"(hive)$" withReplacement:@"$1s"];
216
+ [self addPluralRule:@"([^aeiouy]|qu)y$" withReplacement:@"$1ies"];
217
+ [self addPluralRule:@"(x|ch|ss|sh)$" withReplacement:@"$1es"];
218
+ [self addPluralRule:@"(matr|vert|ind)(?:ix|ex)$" withReplacement:@"$1ices"];
219
+ [self addPluralRule:@"^(m|l)ouse$" withReplacement:@"$1ice"];
220
+ [self addPluralRule:@"^(m|l)ice$" withReplacement:@"$1ice"];
221
+ [self addPluralRule:@"^(ox)$" withReplacement:@"$1en"];
222
+ [self addPluralRule:@"^(oxen)$" withReplacement:@"$1"];
223
+ [self addPluralRule:@"(quiz)$" withReplacement:@"$1zes"];
224
+
225
+ [self addSingularRule:@"s$" withReplacement:@""];
226
+ [self addSingularRule:@"(ss)$" withReplacement:@"$1"];
227
+ [self addSingularRule:@"(n)ews$" withReplacement:@"$1ews"];
228
+ [self addSingularRule:@"([ti])a$" withReplacement:@"$1um"];
229
+ [self addSingularRule:@"([^f])ves$" withReplacement:@"$1fe"];
230
+ [self addSingularRule:@"(hive)s$" withReplacement:@"$1"];
231
+ [self addSingularRule:@"(tive)s$" withReplacement:@"$1"];
232
+ [self addSingularRule:@"([lr])ves$" withReplacement:@"$1f"];
233
+ [self addSingularRule:@"([^aeiouy]|qu)ies$" withReplacement:@"$1y"];
234
+ [self addSingularRule:@"(s)eries$" withReplacement:@"$1eries"];
235
+ [self addSingularRule:@"(m)ovies$" withReplacement:@"$1ovie"];
236
+ [self addSingularRule:@"(x|ch|ss|sh)es$" withReplacement:@"$1"];
237
+ [self addSingularRule:@"^(m|l)ice$" withReplacement:@"$1ouse"];
238
+ [self addSingularRule:@"(bus)(es)?$" withReplacement:@"$1"];
239
+ [self addSingularRule:@"(o)es$" withReplacement:@"$1"];
240
+ [self addSingularRule:@"(shoe)s$" withReplacement:@"$1"];
241
+ [self addSingularRule:@"(cris|test)(is|es)$" withReplacement:@"$1is"];
242
+ [self addSingularRule:@"^(a)x[ie]s$" withReplacement:@"$1xis"];
243
+ [self addSingularRule:@"(octop|vir)(us|i)$" withReplacement:@"$1us"];
244
+ [self addSingularRule:@"(alias|status)(es)?$" withReplacement:@"$1"];
245
+ [self addSingularRule:@"^(ox)en" withReplacement:@"$1"];
246
+ [self addSingularRule:@"(vert|ind)ices$" withReplacement:@"$1ex"];
247
+ [self addSingularRule:@"(matr)ices$" withReplacement:@"$1ix"];
248
+ [self addSingularRule:@"(quiz)zes$" withReplacement:@"$1"];
249
+ [self addSingularRule:@"(database)s$" withReplacement:@"$1"];
250
+
251
+ [self addIrregularWithSingular:@"person" plural:@"people"];
252
+ [self addIrregularWithSingular:@"man" plural:@"men"];
253
+ [self addIrregularWithSingular:@"child" plural:@"children"];
254
+ [self addIrregularWithSingular:@"sex" plural:@"sexes"];
255
+ [self addIrregularWithSingular:@"move" plural:@"moves"];
256
+ [self addIrregularWithSingular:@"cow" plural:@"cattle"];
257
+ [self addIrregularWithSingular:@"zombie" plural:@"zombies"];
258
+
259
+ [self addUncountable:@"equipment"];
260
+ [self addUncountable:@"information"];
261
+ [self addUncountable:@"rice"];
262
+ [self addUncountable:@"money"];
263
+ [self addUncountable:@"species"];
264
+ [self addUncountable:@"series"];
265
+ [self addUncountable:@"fish"];
266
+ [self addUncountable:@"sheep"];
267
+ [self addUncountable:@"jeans"];
268
+ }
269
+
270
+ @end
@@ -0,0 +1,95 @@
1
+ //
2
+ // MKAnnotationView+WebCache.h
3
+ // SDWebImage
4
+ //
5
+ // Created by Olivier Poitrey on 14/03/12.
6
+ // Copyright (c) 2012 Dailymotion. All rights reserved.
7
+ //
8
+
9
+ #import "MapKit/MapKit.h"
10
+ #import "SDWebImageManager.h"
11
+
12
+ /**
13
+ * Integrates SDWebImage async downloading and caching of remote images with MKAnnotationView.
14
+ */
15
+ @interface MKAnnotationView (WebCache)
16
+
17
+ /**
18
+ * Set the imageView `image` with an `url`.
19
+ *
20
+ * The downloand is asynchronous and cached.
21
+ *
22
+ * @param url The url for the image.
23
+ */
24
+ - (void)setImageWithURL:(NSURL *)url;
25
+
26
+ /**
27
+ * Set the imageView `image` with an `url` and a placeholder.
28
+ *
29
+ * The downloand is asynchronous and cached.
30
+ *
31
+ * @param url The url for the image.
32
+ * @param placeholder The image to be set initially, until the image request finishes.
33
+ * @see setImageWithURL:placeholderImage:options:
34
+ */
35
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
36
+
37
+ /**
38
+ * Set the imageView `image` with an `url`, placeholder and custom options.
39
+ *
40
+ * The downloand is asynchronous and cached.
41
+ *
42
+ * @param url The url for the image.
43
+ * @param placeholder The image to be set initially, until the image request finishes.
44
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
45
+ */
46
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
47
+
48
+ /**
49
+ * Set the imageView `image` with an `url`.
50
+ *
51
+ * The downloand is asynchronous and cached.
52
+ *
53
+ * @param url The url for the image.
54
+ * @param completedBlock A block called when operation has been completed. This block as no return value
55
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
56
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
57
+ * indicating if the image was retrived from the local cache of from the network.
58
+ */
59
+ - (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock;
60
+
61
+ /**
62
+ * Set the imageView `image` with an `url`, placeholder.
63
+ *
64
+ * The downloand is asynchronous and cached.
65
+ *
66
+ * @param url The url for the image.
67
+ * @param placeholder The image to be set initially, until the image request finishes.
68
+ * @param completedBlock A block called when operation has been completed. This block as no return value
69
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
70
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
71
+ * indicating if the image was retrived from the local cache of from the network.
72
+ */
73
+ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
74
+
75
+ /**
76
+ * Set the imageView `image` with an `url`, placeholder and custom options.
77
+ *
78
+ * The downloand is asynchronous and cached.
79
+ *
80
+ * @param url The url for the image.
81
+ * @param placeholder The image to be set initially, until the image request finishes.
82
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
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 placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
89
+
90
+ /**
91
+ * Cancel the current download
92
+ */
93
+ - (void)cancelCurrentImageLoad;
94
+
95
+ @end