Permalink
Browse files

Readded source

  • Loading branch information...
1 parent 0e0b6f0 commit 1a37e1c977cde21ccdc241c83e5e54e566f3bb4c @josephg josephg committed Sep 19, 2008
Showing with 29,617 additions and 0 deletions.
  1. +211 −0 MapView/ApplicationSupport/MainWindow.xib
  2. +22 −0 MapView/ApplicationSupport/MapViewAppDelegate.h
  3. +37 −0 MapView/ApplicationSupport/MapViewAppDelegate.m
  4. +16 −0 MapView/ApplicationSupport/MapViewViewController.h
  5. +56 −0 MapView/ApplicationSupport/MapViewViewController.m
  6. +150 −0 MapView/ApplicationSupport/MapViewViewController.xib
  7. BIN MapView/ApplicationSupport/loading.png
  8. +17 −0 MapView/ApplicationSupport/main.m
  9. +19 −0 MapView/Classes/RMCoreAnimationRenderer.h
  10. +103 −0 MapView/Classes/RMCoreAnimationRenderer.m
  11. +17 −0 MapView/Classes/RMDiskCache.h
  12. +24 −0 MapView/Classes/RMDiskCache.m
  13. +18 −0 MapView/Classes/RMFileTileImage.h
  14. +32 −0 MapView/Classes/RMFileTileImage.m
  15. +55 −0 MapView/Classes/RMFractalTileProjection.h
  16. +118 −0 MapView/Classes/RMFractalTileProjection.m
  17. +22 −0 MapView/Classes/RMLayerToScreenProjection.h
  18. +103 −0 MapView/Classes/RMLayerToScreenProjection.m
  19. +22 −0 MapView/Classes/RMLayeredTileLoader.h
  20. +85 −0 MapView/Classes/RMLayeredTileLoader.m
  21. +41 −0 MapView/Classes/RMMapRenderer.h
  22. +101 −0 MapView/Classes/RMMapRenderer.m
  23. +48 −0 MapView/Classes/RMMapView.h
  24. +344 −0 MapView/Classes/RMMapView.m
  25. +33 −0 MapView/Classes/RMMathUtils.c
  26. +19 −0 MapView/Classes/RMMathUtils.h
  27. +21 −0 MapView/Classes/RMMemoryCache.h
  28. +109 −0 MapView/Classes/RMMemoryCache.m
  29. +35 −0 MapView/Classes/RMMercator.h
  30. +81 −0 MapView/Classes/RMMercator.m
  31. +28 −0 MapView/Classes/RMOpenStreetMapsSource.h
  32. +68 −0 MapView/Classes/RMOpenStreetMapsSource.m
  33. +35 −0 MapView/Classes/RMProjection.h
  34. +108 −0 MapView/Classes/RMProjection.m
  35. +20 −0 MapView/Classes/RMQuartzRenderer.h
  36. +74 −0 MapView/Classes/RMQuartzRenderer.m
  37. +50 −0 MapView/Classes/RMScreenProjection.h
  38. +108 −0 MapView/Classes/RMScreenProjection.m
  39. +90 −0 MapView/Classes/RMTile.c
  40. +47 −0 MapView/Classes/RMTile.h
  41. +41 −0 MapView/Classes/RMTileCache.h
  42. +86 −0 MapView/Classes/RMTileCache.m
  43. +67 −0 MapView/Classes/RMTileImage.h
  44. +240 −0 MapView/Classes/RMTileImage.m
  45. +55 −0 MapView/Classes/RMTileImageSet.h
  46. +203 −0 MapView/Classes/RMTileImageSet.m
  47. +60 −0 MapView/Classes/RMTileLoader.h
  48. +181 −0 MapView/Classes/RMTileLoader.m
  49. +20 −0 MapView/Classes/RMTileProxy.h
  50. +38 −0 MapView/Classes/RMTileProxy.m
  51. +32 −0 MapView/Classes/RMTileSource.h
  52. +56 −0 MapView/Classes/RMTiledLayerController.h
  53. +182 −0 MapView/Classes/RMTiledLayerController.m
  54. +36 −0 MapView/Classes/RMTransform.h
  55. +81 −0 MapView/Classes/RMTransform.m
  56. +24 −0 MapView/Classes/RMWebTileImage.h
  57. +150 −0 MapView/Classes/RMWebTileImage.m
  58. +30 −0 MapView/Info.plist
  59. +701 −0 MapView/MapView.xcodeproj/project.pbxproj
  60. +1,533 −0 MapView/MapView.xcodeproj/sineltor.mode1v3
  61. +2,245 −0 MapView/MapView.xcodeproj/sineltor.pbxuser
  62. +8 −0 MapView/MapView_Prefix.pch
  63. +813 −0 Proj4/Makefile
  64. +69 −0 Proj4/Makefile.am
  65. +813 −0 Proj4/Makefile.in
  66. +171 −0 Proj4/PJ_aea.c
  67. +277 −0 Proj4/PJ_aeqd.c
  68. +130 −0 Proj4/PJ_airy.c
  69. +82 −0 Proj4/PJ_aitoff.c
  70. +21 −0 Proj4/PJ_august.c
  71. +44 −0 Proj4/PJ_bacon.c
  72. +135 −0 Proj4/PJ_bipc.c
  73. +35 −0 Proj4/PJ_boggs.c
  74. +88 −0 Proj4/PJ_bonne.c
  75. +82 −0 Proj4/PJ_cass.c
  76. +22 −0 Proj4/PJ_cc.c
  77. +64 −0 Proj4/PJ_cea.c
  78. +115 −0 Proj4/PJ_chamb.c
  79. +32 −0 Proj4/PJ_collg.c
  80. +25 −0 Proj4/PJ_crast.c
  81. +21 −0 Proj4/PJ_denoy.c
  82. +22 −0 Proj4/PJ_eck1.c
  83. +31 −0 Proj4/PJ_eck2.c
  84. +53 −0 Proj4/PJ_eck3.c
  85. +47 −0 Proj4/PJ_eck4.c
  86. +21 −0 Proj4/PJ_eck5.c
  87. +26 −0 Proj4/PJ_eqc.c
  88. +88 −0 Proj4/PJ_eqdc.c
  89. +20 −0 Proj4/PJ_fahey.c
  90. +48 −0 Proj4/PJ_fouc_s.c
  91. +22 −0 Proj4/PJ_gall.c
  92. +157 −0 Proj4/PJ_geos.c
  93. +20 −0 Proj4/PJ_gins8.c
  94. +103 −0 Proj4/PJ_gn_sinu.c
  95. +108 −0 Proj4/PJ_gnom.c
  96. +49 −0 Proj4/PJ_goode.c
  97. +32 −0 Proj4/PJ_hammer.c
  98. +53 −0 Proj4/PJ_hatano.c
  99. +154 −0 Proj4/PJ_imw_p.c
  100. +280 −0 Proj4/PJ_krovak.c
  101. +112 −0 Proj4/PJ_labrd.c
  102. +236 −0 Proj4/PJ_laea.c
  103. +38 −0 Proj4/PJ_lagrng.c
  104. +15 −0 Proj4/PJ_larr.c
  105. +29 −0 Proj4/PJ_lask.c
  106. +106 −0 Proj4/PJ_lcc.c
  107. +76 −0 Proj4/PJ_lcca.c
  108. +44 −0 Proj4/PJ_loxim.c
  109. +174 −0 Proj4/PJ_lsat.c
  110. +41 −0 Proj4/PJ_mbt_fps.c
  111. +35 −0 Proj4/PJ_mbtfpp.c
  112. +50 −0 Proj4/PJ_mbtfpq.c
  113. +50 −0 Proj4/PJ_merc.c
  114. +18 −0 Proj4/PJ_mill.c
  115. +214 −0 Proj4/PJ_mod_ster.c
  116. +65 −0 Proj4/PJ_moll.c
  117. +34 −0 Proj4/PJ_nell.c
  118. +33 −0 Proj4/PJ_nell_h.c
  119. +41 −0 Proj4/PJ_nocol.c
  120. +152 −0 Proj4/PJ_nsper.c
  121. +114 −0 Proj4/PJ_nzmg.c
  122. +147 −0 Proj4/PJ_ob_tran.c
  123. +71 −0 Proj4/PJ_ocea.c
  124. +61 −0 Proj4/PJ_oea.c
  125. +169 −0 Proj4/PJ_omerc.c
  126. +98 −0 Proj4/PJ_ortho.c
  127. +102 −0 Proj4/PJ_poly.c
  128. +43 −0 Proj4/PJ_putp2.c
  129. +29 −0 Proj4/PJ_putp3.c
  130. +32 −0 Proj4/PJ_putp4p.c
  131. +29 −0 Proj4/PJ_putp5.c
  132. +62 −0 Proj4/PJ_putp6.c
  133. +108 −0 Proj4/PJ_robin.c
  134. +38 −0 Proj4/PJ_rpoly.c
  135. +157 −0 Proj4/PJ_sconics.c
  136. +69 −0 Proj4/PJ_somerc.c
  137. +244 −0 Proj4/PJ_stere.c
  138. +97 −0 Proj4/PJ_sterea.c
  139. +57 −0 Proj4/PJ_sts.c
  140. +20 −0 Proj4/PJ_tcc.c
  141. +30 −0 Proj4/PJ_tcea.c
  142. +148 −0 Proj4/PJ_tmerc.c
  143. +79 −0 Proj4/PJ_tpeqd.c
  144. +31 −0 Proj4/PJ_urm5.c
  145. +43 −0 Proj4/PJ_urmfps.c
  146. +81 −0 Proj4/PJ_vandg.c
  147. +48 −0 Proj4/PJ_vandg2.c
  148. +44 −0 Proj4/PJ_vandg4.c
  149. +24 −0 Proj4/PJ_wag2.c
  150. +27 −0 Proj4/PJ_wag3.c
  151. +17 −0 Proj4/PJ_wag7.c
  152. +23 −0 Proj4/PJ_wink1.c
  153. +37 −0 Proj4/PJ_wink2.c
  154. BIN Proj4/Proj4.xcodeproj/TemplateIcon.icns
  155. +866 −0 Proj4/Proj4.xcodeproj/project.pbxproj
  156. +1,422 −0 Proj4/Proj4.xcodeproj/sineltor.mode1v3
  157. +896 −0 Proj4/Proj4.xcodeproj/sineltor.pbxuser
  158. +7 −0 Proj4/Proj4_Prefix.pch
  159. +36 −0 Proj4/aasincos.c
  160. +18 −0 Proj4/adjlon.c
  161. +143 −0 Proj4/bch2bps.c
  162. +61 −0 Proj4/bchgen.c
  163. +89 −0 Proj4/biveval.c
  164. +446 −0 Proj4/cs2cs.c
  165. +111 −0 Proj4/dmstor.c
  166. +60 −0 Proj4/emess.c
  167. +32 −0 Proj4/emess.h
  168. +74 −0 Proj4/gen_cheb.c
  169. +454 −0 Proj4/geocent.c
  170. +179 −0 Proj4/geocent.h
  171. +240 −0 Proj4/geod.c
  172. +106 −0 Proj4/geod_for.c
  173. +59 −0 Proj4/geod_inv.c
  174. +77 −0 Proj4/geod_set.c
  175. +51 −0 Proj4/geodesic.h
  176. +202 −0 Proj4/jniproj.c
  177. +164 −0 Proj4/mk_cheby.c
  178. +68 −0 Proj4/nad2bin.c
  179. +313 −0 Proj4/nad2nad.c
  180. +71 −0 Proj4/nad_cvt.c
  181. +203 −0 Proj4/nad_init.c
  182. +65 −0 Proj4/nad_intr.c
  183. +6 −0 Proj4/nad_list.h
  184. +37 −0 Proj4/org_proj4_Projections.h
  185. +42 −0 Proj4/p_series.c
  186. +178 −0 Proj4/pj_apply_gridshift.c
  187. +33 −0 Proj4/pj_auth.c
  188. +154 −0 Proj4/pj_datum_set.c
  189. +129 −0 Proj4/pj_datums.c
  190. +36 −0 Proj4/pj_deriv.c
  191. +105 −0 Proj4/pj_ell_set.c
  192. +59 −0 Proj4/pj_ellps.c
  193. +20 −0 Proj4/pj_errno.c
  194. +87 −0 Proj4/pj_factors.c
  195. +37 −0 Proj4/pj_fwd.c
  196. +107 −0 Proj4/pj_gauss.c
  197. +63 −0 Proj4/pj_geocent.c
  198. +714 −0 Proj4/pj_gridinfo.c
  199. +274 −0 Proj4/pj_gridlist.c
  200. +429 −0 Proj4/pj_init.c
  201. +32 −0 Proj4/pj_inv.c
  202. +92 −0 Proj4/pj_latlong.c
  203. +14 −0 Proj4/pj_list.c
  204. +135 −0 Proj4/pj_list.h
  205. +28 −0 Proj4/pj_malloc.c
  206. +60 −0 Proj4/pj_mlfn.c
  207. +10 −0 Proj4/pj_msfn.c
  208. +191 −0 Proj4/pj_open_lib.c
  209. +107 −0 Proj4/pj_param.c
  210. +28 −0 Proj4/pj_phi2.c
  211. +94 −0 Proj4/pj_pr_list.c
  212. +19 −0 Proj4/pj_qsfn.c
  213. +11 −0 Proj4/pj_release.c
  214. +85 −0 Proj4/pj_strerrno.c
  215. +740 −0 Proj4/pj_transform.c
  216. +13 −0 Proj4/pj_tsfn.c
  217. +40 −0 Proj4/pj_units.c
  218. +175 −0 Proj4/pj_utils.c
  219. +49 −0 Proj4/pj_zpoly1.c
  220. +502 −0 Proj4/proj.c
  221. +41 −0 Proj4/proj.def
  222. +157 −0 Proj4/proj_api.h
  223. +62 −0 Proj4/proj_config.h
  224. +61 −0 Proj4/proj_config.h.in
  225. +132 −0 Proj4/proj_mdist.c
  226. +131 −0 Proj4/proj_rouss.c
  227. +507 −0 Proj4/projects.h
  228. +75 −0 Proj4/rtodms.c
  229. +32 −0 Proj4/vector1.c
@@ -0,0 +1,211 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02">
+ <data>
+ <int key="IBDocument.SystemTarget">528</int>
+ <string key="IBDocument.SystemVersion">9E17</string>
+ <string key="IBDocument.InterfaceBuilderVersion">672</string>
+ <string key="IBDocument.AppKitVersion">949.33</string>
+ <string key="IBDocument.HIToolboxVersion">352.00</string>
+ <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="12"/>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBProxyObject" id="841351856">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ </object>
+ <object class="IBProxyObject" id="427554174">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ </object>
+ <object class="IBUICustomObject" id="664661524"/>
+ <object class="IBUIViewController" id="943309135">
+ <string key="IBUINibName">MapViewViewController</string>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ </object>
+ <object class="IBUIWindow" id="117978783">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MSAxIDEAA</bytes>
+ </object>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <bool key="IBUIVisibleAtLaunch">YES</bool>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="841351856"/>
+ <reference key="destination" ref="664661524"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">viewController</string>
+ <reference key="source" ref="664661524"/>
+ <reference key="destination" ref="943309135"/>
+ </object>
+ <int key="connectionID">11</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="664661524"/>
+ <reference key="destination" ref="117978783"/>
+ </object>
+ <int key="connectionID">14</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <object class="NSArray" key="object" id="957960031">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="841351856"/>
+ <reference key="parent" ref="957960031"/>
+ <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="664661524"/>
+ <reference key="parent" ref="957960031"/>
+ <string key="objectName">MapView App Delegate</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="427554174"/>
+ <reference key="parent" ref="957960031"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="943309135"/>
+ <reference key="parent" ref="957960031"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="117978783"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="parent" ref="957960031"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.CustomClassName</string>
+ <string>-2.CustomClassName</string>
+ <string>10.CustomClassName</string>
+ <string>10.IBEditorWindowLastContentRect</string>
+ <string>10.IBPluginDependency</string>
+ <string>12.IBEditorWindowLastContentRect</string>
+ <string>12.IBPluginDependency</string>
+ <string>3.CustomClassName</string>
+ <string>3.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UIApplication</string>
+ <string>UIResponder</string>
+ <string>MapViewViewController</string>
+ <string>{{579, 209}, {320, 480}}</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>{{522, 321}, {320, 480}}</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>MapViewAppDelegate</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">15</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">MapViewAppDelegate</string>
+ <string key="superclassName">NSObject</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>viewController</string>
+ <string>window</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>MapViewViewController</string>
+ <string>UIWindow</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Classes/MapViewAppDelegate.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">MapViewAppDelegate</string>
+ <string key="superclassName">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBUserSource</string>
+ <string key="minorKey"/>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">MapViewViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Classes/MapViewViewController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.LastKnownRelativeProjectPath">MapView.xcodeproj</string>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ </data>
+</archive>
@@ -0,0 +1,22 @@
+//
+// MapViewAppDelegate.h
+// MapView
+//
+// Created by Joseph Gentle on 17/09/08.
+// Copyright __MyCompanyName__ 2008. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class MapViewViewController;
+
+@interface MapViewAppDelegate : NSObject <UIApplicationDelegate> {
+ UIWindow *window;
+ MapViewViewController *viewController;
+}
+
+@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet MapViewViewController *viewController;
+
+@end
+
@@ -0,0 +1,37 @@
+//
+// MapViewAppDelegate.m
+// MapView
+//
+// Created by Joseph Gentle on 17/09/08.
+// Copyright __MyCompanyName__ 2008. All rights reserved.
+//
+
+#import "MapViewAppDelegate.h"
+#import "MapViewViewController.h"
+#import "RMMapView.h"
+
+@implementation MapViewAppDelegate
+
+@synthesize window;
+@synthesize viewController;
+
+
+- (void)applicationDidFinishLaunching:(UIApplication *)application {
+
+ // Make sure it doesn't strip mapview.
+ [RMMapView class];
+
+ // Override point for customization after app launch
+ [window addSubview:viewController.view];
+ [window makeKeyAndVisible];
+}
+
+
+- (void)dealloc {
+ [viewController release];
+ [window release];
+ [super dealloc];
+}
+
+
+@end
@@ -0,0 +1,16 @@
+//
+// MapViewViewController.h
+// MapView
+//
+// Created by Joseph Gentle on 17/09/08.
+// Copyright __MyCompanyName__ 2008. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface MapViewViewController : UIViewController {
+
+}
+
+@end
+
@@ -0,0 +1,56 @@
+//
+// MapViewViewController.m
+// MapView
+//
+// Created by Joseph Gentle on 17/09/08.
+// Copyright __MyCompanyName__ 2008. All rights reserved.
+//
+
+#import "MapViewViewController.h"
+
+@implementation MapViewViewController
+
+
+
+/*
+// Override initWithNibName:bundle: to load the view using a nib file then perform additional customization that is not appropriate for viewDidLoad.
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+ if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
+ // Custom initialization
+ }
+ return self;
+}
+*/
+
+/*
+// Implement loadView to create a view hierarchy programmatically.
+- (void)loadView {
+}
+*/
+
+
+/*
+// Implement viewDidLoad to do additional setup after loading the view.
+- (void)viewDidLoad {
+ [super viewDidLoad];
+}
+*/
+
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+
+
+- (void)didReceiveMemoryWarning {
+ [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
+ // Release anything that's not essential, such as cached data
+}
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+@end
Oops, something went wrong.

0 comments on commit 1a37e1c

Please sign in to comment.