Permalink
Browse files

First commit.

  • Loading branch information...
1 parent 76b2eed commit 647a7d9bca822a4e250c12cc9c2fe1854f3dcb1e @kishikawakatsumi committed Sep 27, 2012
Showing with 7,299 additions and 1 deletion.
  1. +541 −0 ClassicMap.xcodeproj/project.pbxproj
  2. +86 −0 ClassicMap.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme
  3. +86 −0 ClassicMap.xcodeproj/xcshareddata/xcschemes/Release.xcscheme
  4. +89 −0 ClassicMap/ClassicMap-Info.plist
  5. +14 −0 ClassicMap/ClassicMap-Prefix.pch
  6. BIN ClassicMap/Default-568h@2x.png
  7. BIN ClassicMap/Default-Landscape@2x~ipad.png
  8. BIN ClassicMap/Default-Landscape~ipad.png
  9. BIN ClassicMap/Default-Portrait@2x~ipad.png
  10. BIN ClassicMap/Default-Portrait~ipad.png
  11. BIN ClassicMap/Default.png
  12. BIN ClassicMap/Default@2x.png
  13. BIN ClassicMap/Icon-72.png
  14. BIN ClassicMap/Icon-72@2x.png
  15. BIN ClassicMap/Icon-Small-50.png
  16. BIN ClassicMap/Icon-Small-50@2x.png
  17. BIN ClassicMap/Icon-Small.png
  18. BIN ClassicMap/Icon-Small@2x.png
  19. BIN ClassicMap/Icon.png
  20. BIN ClassicMap/Icon@2x.png
  21. BIN ClassicMap/LoadingTile.png
  22. BIN ClassicMap/LoadingTile@2x.png
  23. +29 −0 ClassicMap/Settings.bundle/Root.plist
  24. +3 −0 ClassicMap/Settings.bundle/en.lproj/Root.strings
  25. +3 −0 ClassicMap/Settings.bundle/ja.lproj/Root.strings
  26. +15 −0 ClassicMap/WMAppDelegate.h
  27. +66 −0 ClassicMap/WMAppDelegate.m
  28. +28 −0 ClassicMap/WMConfigurationViewController.h
  29. +105 −0 ClassicMap/WMConfigurationViewController.m
  30. +20 −0 ClassicMap/WMDetailViewController.h
  31. +85 −0 ClassicMap/WMDetailViewController.m
  32. +25 −0 ClassicMap/WMImageCache.h
  33. +197 −0 ClassicMap/WMImageCache.m
  34. +24 −0 ClassicMap/WMMapViewController.h
  35. +365 −0 ClassicMap/WMMapViewController.m
  36. +19 −0 ClassicMap/WMOverlay.h
  37. +52 −0 ClassicMap/WMOverlay.m
  38. +158 −0 ClassicMap/WMOverlayView (MacBookAir3,1 上の問題のあるコピー 2012-09-27).m
  39. +14 −0 ClassicMap/WMOverlayView.h
  40. +158 −0 ClassicMap/WMOverlayView.m
  41. +18 −0 ClassicMap/WMPlacemark.h
  42. +15 −0 ClassicMap/WMPlacemark.m
  43. +4 −0 ClassicMap/en.lproj/InfoPlist.strings
  44. +27 −0 ClassicMap/en.lproj/Localizable.strings
  45. +88 −0 ClassicMap/en.lproj/MainStoryboard_iPad.storyboard
  46. +235 −0 ClassicMap/en.lproj/MainStoryboard_iPhone.storyboard
  47. +4 −0 ClassicMap/ja.lproj/InfoPlist.strings
  48. +27 −0 ClassicMap/ja.lproj/Localizable.strings
  49. +18 −0 ClassicMap/main.m
  50. +19 −0 LICENSE
  51. +25 −1 README.md
  52. +543 −0 Vendor/AFNetworking/AFHTTPClient.h
  53. +1,151 −0 Vendor/AFNetworking/AFHTTPClient.m
  54. +133 −0 Vendor/AFNetworking/AFHTTPRequestOperation.h
  55. +347 −0 Vendor/AFNetworking/AFHTTPRequestOperation.m
  56. +108 −0 Vendor/AFNetworking/AFImageRequestOperation.h
  57. +237 −0 Vendor/AFNetworking/AFImageRequestOperation.m
  58. +66 −0 Vendor/AFNetworking/AFJSONRequestOperation.h
  59. +135 −0 Vendor/AFNetworking/AFJSONRequestOperation.m
  60. +75 −0 Vendor/AFNetworking/AFNetworkActivityIndicatorManager.h
  61. +131 −0 Vendor/AFNetworking/AFNetworkActivityIndicatorManager.m
  62. +44 −0 Vendor/AFNetworking/AFNetworking.h
  63. +68 −0 Vendor/AFNetworking/AFPropertyListRequestOperation.h
  64. +145 −0 Vendor/AFNetworking/AFPropertyListRequestOperation.m
  65. +293 −0 Vendor/AFNetworking/AFURLConnectionOperation.h
  66. +644 −0 Vendor/AFNetworking/AFURLConnectionOperation.m
  67. +89 −0 Vendor/AFNetworking/AFXMLRequestOperation.h
  68. +169 −0 Vendor/AFNetworking/AFXMLRequestOperation.m
  69. +76 −0 Vendor/AFNetworking/UIImageView+AFNetworking.h
  70. +183 −0 Vendor/AFNetworking/UIImageView+AFNetworking.m
  71. BIN iTunesArtwork
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0450"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0450"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Release">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "149A4042160F91540058468B"
+ BuildableName = "ClassicMap.app"
+ BlueprintName = "ClassicMap"
+ ReferencedContainer = "container:ClassicMap.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Release">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string>Icon.png</string>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>Icon.png</string>
+ <string>Icon-72.png</string>
+ <string>Icon@2x.png</string>
+ <string>Icon-72@2x.png</string>
+ <string>Icon-Small.png</string>
+ <string>Icon-Small-50.png</string>
+ <string>Icon-Small@2x.png</string>
+ <string>Icon-Small-50@2x.png</string>
+ </array>
+ <key>CFBundleIcons</key>
+ <dict>
+ <key>CFBundlePrimaryIcon</key>
+ <dict>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>Icon.png</string>
+ <string>Icon-72.png</string>
+ <string>Icon@2x.png</string>
+ <string>Icon-72@2x.png</string>
+ <string>Icon-Small.png</string>
+ <string>Icon-Small-50.png</string>
+ <string>Icon-Small@2x.png</string>
+ <string>Icon-Small-50@2x.png</string>
+ </array>
+ <key>UIPrerenderedIcon</key>
+ <true/>
+ </dict>
+ </dict>
+ <key>CFBundleIdentifier</key>
+ <string>com.kishikawakatsumi.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIMainStoryboardFile</key>
+ <string>MainStoryboard_iPhone</string>
+ <key>UIMainStoryboardFile~ipad</key>
+ <string>MainStoryboard_iPad</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UIStatusBarTintParameters</key>
+ <dict>
+ <key>UINavigationBar</key>
+ <dict>
+ <key>Style</key>
+ <string>UIBarStyleDefault</string>
+ <key>Translucent</key>
+ <false/>
+ </dict>
+ </dict>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'WorldMap' target in the 'WorldMap' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_5_0
+#warning "This project uses features only available in iOS SDK 5.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Title</key>
+ <string>ClassicMap</string>
+ <key>StringsTable</key>
+ <string>Root</string>
+ <key>PreferenceSpecifiers</key>
+ <array>
+ <dict>
+ <key>Type</key>
+ <string>PSGroupSpecifier</string>
+ <key>Title</key>
+ <string>Cache</string>
+ </dict>
+ <dict>
+ <key>Type</key>
+ <string>PSToggleSwitchSpecifier</string>
+ <key>Title</key>
+ <string>Clear Caches on Launch</string>
+ <key>Key</key>
+ <string>clearAllFileCachesOnLaunch</string>
+ <key>DefaultValue</key>
+ <false/>
+ </dict>
+ </array>
+</dict>
+</plist>
@@ -0,0 +1,3 @@
+"ClassicMap" = "ClassicMap";
+"Caches" = "Caches";
+"Clear Caches on Launch" = "Clear Caches on Launch";
@@ -0,0 +1,3 @@
+"ClassicMap" = "復刻版マップ";
+"Caches" = "キャッシュ";
+"Clear Caches on Launch" = "キャッシュをクリア";
@@ -0,0 +1,15 @@
+//
+// WMAppDelegate.h
+// WorldMap
+//
+// Created by kishikawa katsumi on 2012/09/24.
+// Copyright (c) 2012 kishikawa katsumi. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface WMAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
@@ -0,0 +1,66 @@
+//
+// WMAppDelegate.m
+// WorldMap
+//
+// Created by kishikawa katsumi on 2012/09/24.
+// Copyright (c) 2012 kishikawa katsumi. All rights reserved.
+//
+
+#import "WMAppDelegate.h"
+#import "WMImageCache.h"
+#import "AFNetworking.h"
+
+@implementation WMAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
+ [self registerDefaultsFromSettingsBundle];
+
+ NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
+ BOOL clearAllFileCachesOnLaunch = [defs boolForKey:@"clearAllFileCachesOnLaunch"];
+ if (clearAllFileCachesOnLaunch) {
+ NSLog(@"%@", @"clear caches");
+ [[WMImageCache sharedInstance] deleteAllCacheFiles];
+ [defs setBool:NO forKey:@"clearAllFileCachesOnLaunch"];
+ [defs synchronize];
+ }
+
+ return YES;
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+ [[WMImageCache sharedInstance] purgeMemoryCache];
+}
+
+- (void)registerDefaultsFromSettingsBundle
+{
+ NSUserDefaults * defs = [NSUserDefaults standardUserDefaults];
+ [defs synchronize];
+
+ NSString *settingsBundle = [[NSBundle mainBundle] pathForResource:@"Settings" ofType:@"bundle"];
+ if (!settingsBundle) {
+ return;
+ }
+
+ NSDictionary *settings = [NSDictionary dictionaryWithContentsOfFile:[settingsBundle stringByAppendingPathComponent:@"Root.plist"]];
+ NSArray *preferences = [settings objectForKey:@"PreferenceSpecifiers"];
+ NSMutableDictionary *defaultsToRegister = [[NSMutableDictionary alloc] initWithCapacity:[preferences count]];
+
+ for (NSDictionary *prefSpecification in preferences) {
+ NSString *key = [prefSpecification objectForKey:@"Key"];
+ if (key) {
+ id currentObject = [defs objectForKey:key];
+ if (!currentObject) {
+ id objectToSet = [prefSpecification objectForKey:@"DefaultValue"];
+ [defaultsToRegister setObject:objectToSet forKey:key];
+ }
+ }
+ }
+
+ [defs registerDefaults:defaultsToRegister];
+ [defs synchronize];
+}
+
+@end
Oops, something went wrong. Retry.

0 comments on commit 647a7d9

Please sign in to comment.