├── Assets ├── IPASearch.psd ├── touchBar.png └── screenshot.png ├── IPASearch ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── IPASearch 2.png │ │ ├── IPASearch 3.png │ │ ├── IPASearch 4.png │ │ ├── IPASearch 5.png │ │ ├── IPASearch 6.png │ │ ├── IPASearch 7.png │ │ ├── IPASearch.png │ │ ├── IPASearch 2-1.png │ │ ├── IPASearch 4-1.png │ │ ├── IPASearch 6-1.png │ │ └── Contents.json ├── main.m ├── AppDelegate.h ├── ISResultsTableView.h ├── ISResultsTableCellView.h ├── AppDelegate.m ├── ISApp.h ├── ISApp.m ├── Credits.rtf ├── ISResultsTableView.m ├── ISPPDataFetcher.h ├── ISResultsTableCellView.m ├── ISMainWindowController.h ├── Info.plist ├── ISMainWindowController.m ├── ISPPDataFetcher.m └── Base.lproj │ └── Main.storyboard ├── IPASearch.xcodeproj ├── xcuserdata │ └── Li.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── IPASearch.xcscheme ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── README.md └── LICENSE /Assets/IPASearch.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/Assets/IPASearch.psd -------------------------------------------------------------------------------- /Assets/touchBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/Assets/touchBar.png -------------------------------------------------------------------------------- /Assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/Assets/screenshot.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 2.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 3.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 4.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 5.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 6.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 7.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 2-1.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 4-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 4-1.png -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 6-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ytx0574/IPASearch/HEAD/IPASearch/Assets.xcassets/AppIcon.appiconset/IPASearch 6-1.png -------------------------------------------------------------------------------- /IPASearch.xcodeproj/xcuserdata/Li.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /IPASearch.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IPASearch/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /IPASearch/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /IPASearch/ISResultsTableView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISResultsTableView.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/29. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ISResultsTableView : NSTableView 12 | 13 | - (void)keyDown:(NSEvent *)event; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /IPASearch/ISResultsTableCellView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISResultsTableCellView.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ISApp.h" 11 | 12 | @interface ISResultsTableCellView : NSTableCellView 13 | 14 | @property (weak) IBOutlet NSImageView *iconView; 15 | @property (weak) IBOutlet NSTextField *nameLabel; 16 | @property (weak) IBOutlet NSTextField *versionLabel; 17 | @property (weak) IBOutlet NSTextField *sizeLabel; 18 | 19 | - (void)showInfoOfApp: (ISApp *)app; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /IPASearch/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | // Insert code here to initialize your application 19 | } 20 | 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /IPASearch.xcodeproj/xcuserdata/Li.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | IPASearch.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 0AD9D41B1DC1C8E600EB2FCE 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /IPASearch/ISApp.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISAppData.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ISApp : NSObject 12 | 13 | @property NSString *appName; 14 | @property NSString *version; 15 | @property NSString *size; 16 | @property NSURL *iconUrl; 17 | @property NSURL *ipaUrl; 18 | @property NSString *desc; 19 | 20 | - (id)initWithAppName: (NSString *)appName version: (NSString *)version size: (NSString *)size iconURL: (NSURL *)iconUrl ipaURL: (NSURL *)ipaUrl description: (NSString *)description; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /IPASearch/ISApp.m: -------------------------------------------------------------------------------- 1 | // 2 | // ISAppData.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "ISApp.h" 10 | 11 | @implementation ISApp 12 | 13 | - (id)initWithAppName: (NSString *)appName version: (NSString *)version size: (NSString *)size iconURL: (NSURL *)iconUrl ipaURL: (NSURL *)ipaUrl description: (NSString *)description { 14 | if (self = [super init]) { 15 | self.appName = appName; 16 | self.version = version; 17 | self.size = size; 18 | self.iconUrl = iconUrl; 19 | self.ipaUrl = ipaUrl; 20 | self.desc = description; 21 | } 22 | return self; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IPASearch 2 | 3 | ![Platform](https://img.shields.io/badge/platform-macOS-orange.svg)   ![SDK](https://img.shields.io/badge/SDK-10.12.1-lightgrey.svg)   [![GitHub license](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/JeziL/IPASearch/master/LICENSE) 4 | 5 | 没有越狱 iOS 设备的时候无法使用 [Clutch](https://github.com/KJCracks/Clutch) 等工具砸壳,通常的做法是下载「XX 助手」等盗版应用商店提供的「越狱版」的已经经过砸壳的 IPA 文件。 6 | 7 | 这是一个搜索并下载 [PP 助手](http://www.25pp.com/)应用市场里的 IPA 文件的工具。为什么不用 PP 助手客户端而要自己写一个?因为有病。 8 | 9 | 双击或选中回车下载,选中时也可在 Touch Bar 点按下载或查看 App 描述。因为懒得做 UI,所以查看 App 描述的功能为 Touch Bar 独占。 10 | 11 | **所下载的文件仅供逆向工程研究使用**。 12 | 13 | ![screenshot](Assets/screenshot.png) 14 | 15 | ![touchBar](Assets/touchBar.png) 16 | 17 | -------------------------------------------------------------------------------- /IPASearch/Credits.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg936\cocoartf1504\cocoasubrtf600 2 | {\fonttbl\f0\fswiss\fcharset0 Helvetica;} 3 | {\colortbl;\red255\green255\blue255;} 4 | {\*\expandedcolortbl;\csgray\c100000;} 5 | \margl1440\margr1440\vieww9000\viewh8400\viewkind0 6 | \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\partightenfactor0 7 | 8 | \f0\b\fs24 \cf0 Engineering: 9 | \b0 \ 10 | Wang Jinli\ 11 | \ 12 | 13 | \b Human Interface Design: 14 | \b0 \ 15 | Wang Jinli\ 16 | \ 17 | 18 | \b Testing: 19 | \b0 \ 20 | Wang Jinli\ 21 | \ 22 | 23 | \b With special thanks to: 24 | \b0 \ 25 | 25PP Team ({\field{\*\fldinst{HYPERLINK "http://www.25pp.com/"}}{\fldrslt http://www.25pp.com/}})\ 26 | \ 27 | 28 | \b RESEARCH USE ONLY!!! 29 | \b0 \ 30 | } -------------------------------------------------------------------------------- /IPASearch/ISResultsTableView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ISResultsTableView.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/29. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "ISResultsTableView.h" 10 | 11 | @implementation ISResultsTableView 12 | 13 | - (void)drawRect:(NSRect)dirtyRect { 14 | [super drawRect:dirtyRect]; 15 | 16 | // Drawing code here. 17 | } 18 | 19 | - (void)keyDown:(NSEvent *)event { 20 | unichar u = [[event charactersIgnoringModifiers] characterAtIndex: 0]; 21 | if (u == NSCarriageReturnCharacter) { 22 | [[NSNotificationCenter defaultCenter] postNotificationName:@"ReturnKeyPressed" object:self]; 23 | } 24 | else { 25 | [super keyDown:event]; 26 | } 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /IPASearch/ISPPDataFetcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISPPDataFetcher.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ISApp.h" 11 | 12 | #define PPJBSEARCHTUNNELCOMMAND @"4262469664" 13 | #define PPSTORESEARCHTUNNELCOMMAND @"4262469686" 14 | #define PPSEARCHURL @"https://jsondata.25pp.com/index.html" 15 | 16 | typedef enum { 17 | PPJBSEARCHTYPE, 18 | PPSTORESEARCHTYPE 19 | } PPSearchType; 20 | 21 | 22 | @interface ISPPDataFetcher : NSObject 23 | 24 | @property NSMutableArray *apps; 25 | @property NSInteger count; 26 | @property NSInteger maxCount; 27 | @property NSInteger statusCode; 28 | 29 | - (void)searchAppWithKeyword: (NSString *)keyword searchType: (PPSearchType)type maxResultCount: (int)count; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /IPASearch/ISResultsTableCellView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ISResultsTableCellView.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "ISResultsTableCellView.h" 10 | 11 | @implementation ISResultsTableCellView 12 | 13 | - (void)drawRect:(NSRect)dirtyRect { 14 | [super drawRect:dirtyRect]; 15 | 16 | // Drawing code here. 17 | } 18 | 19 | - (id)initWithCoder:(NSCoder *)aDecoder { 20 | self = [super initWithCoder:aDecoder]; 21 | return self; 22 | } 23 | 24 | - (void)showInfoOfApp: (ISApp *)app { 25 | self.nameLabel.stringValue = app.appName; 26 | self.versionLabel.stringValue = app.version; 27 | self.sizeLabel.stringValue = app.size; 28 | 29 | NSData *imgData = [NSData dataWithContentsOfURL:app.iconUrl]; 30 | NSImage *icon = [[NSImage alloc]initWithData:imgData]; 31 | [self.iconView setImage:icon]; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /IPASearch/ISMainWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ISResultsTableView.h" 11 | #import "ISPPDataFetcher.h" 12 | #import "ISResultsTableCellView.h" 13 | 14 | @interface ISMainWindowController : NSViewController 15 | 16 | @property (weak) IBOutlet NSSearchField *searchField; 17 | @property (weak) IBOutlet NSPopUpButton *typeSelector; 18 | @property (weak, nonatomic) IBOutlet ISResultsTableView *resultsTableView; 19 | @property ISPPDataFetcher *fetcher; 20 | @property (weak) IBOutlet NSTouchBar *mainBar; 21 | @property (weak) IBOutlet NSButton *downloadBarButton; 22 | @property (weak) IBOutlet NSPopoverTouchBarItem *showInfoBarButton; 23 | @property (weak) IBOutlet NSTouchBar *infoBar; 24 | @property (weak) IBOutlet NSScrollView *infoBarScrollView; 25 | @property (unsafe_unretained) IBOutlet NSTextView *infoBarTextView; 26 | 27 | @end 28 | 29 | -------------------------------------------------------------------------------- /IPASearch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | CFBundleDevelopmentRegion 11 | en 12 | CFBundleExecutable 13 | $(EXECUTABLE_NAME) 14 | CFBundleIconFile 15 | 16 | CFBundleIdentifier 17 | $(PRODUCT_BUNDLE_IDENTIFIER) 18 | CFBundleInfoDictionaryVersion 19 | 6.0 20 | CFBundleName 21 | $(PRODUCT_NAME) 22 | CFBundlePackageType 23 | APPL 24 | CFBundleShortVersionString 25 | 1.0 26 | CFBundleVersion 27 | 1 28 | LSApplicationCategoryType 29 | public.app-category.developer-tools 30 | LSMinimumSystemVersion 31 | $(MACOSX_DEPLOYMENT_TARGET) 32 | NSHumanReadableCopyright 33 | Copyright © 2016 Wang Jinli. All rights reserved. 34 | NSMainStoryboardFile 35 | Main 36 | NSPrincipalClass 37 | NSApplication 38 | 39 | 40 | -------------------------------------------------------------------------------- /IPASearch/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "IPASearch.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "IPASearch 2.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "IPASearch 2-1.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "IPASearch 3.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "IPASearch 5.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "IPASearch 6.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "IPASearch 6-1.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "IPASearch 4.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "IPASearch 4-1.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "IPASearch 7.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /IPASearch.xcodeproj/xcuserdata/Li.xcuserdatad/xcschemes/IPASearch.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /IPASearch/ISMainWindowController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "ISMainWindowController.h" 10 | 11 | @implementation ISMainWindowController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | // Remove table header view. 16 | [self.resultsTableView.headerView removeFromSuperview]; 17 | self.resultsTableView.headerView = nil; 18 | [self.resultsTableView reloadData]; 19 | // Set tableView. 20 | self.resultsTableView.dataSource = self; 21 | self.resultsTableView.delegate = self; 22 | self.resultsTableView.doubleAction = @selector(handleDoubleClick:); 23 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(returnKeyPressed:) name:@"ReturnKeyPressed" object:nil]; 24 | // Set search field. 25 | self.searchField.delegate = self; 26 | // Init fetcher. 27 | self.fetcher = [[ISPPDataFetcher alloc] init]; 28 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appDataFetched:) name:@"FetchedAppDataSuccessfully" object:nil]; 29 | // Set Main Touch Bar. 30 | self.mainBar.delegate = self; 31 | self.downloadBarButton.hidden = YES; 32 | self.downloadBarButton.image = [NSImage imageNamed:NSImageNameTouchBarDownloadTemplate]; 33 | self.infoBar.delegate = self; 34 | // Set Info Touch Bar. 35 | self.showInfoBarButton.collapsedRepresentation.hidden = YES; 36 | self.showInfoBarButton.collapsedRepresentationImage = [NSImage imageNamed:NSImageNameTouchBarGetInfoTemplate]; 37 | self.showInfoBarButton.collapsedRepresentationLabel = @""; 38 | [self.infoBarTextView setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; 39 | self.infoBarTextView.textContainer.widthTracksTextView = NO; 40 | [self.infoBarTextView.textContainer setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)]; 41 | } 42 | 43 | 44 | - (void)setRepresentedObject:(id)representedObject { 45 | [super setRepresentedObject:representedObject]; 46 | 47 | // Update the view, if already loaded. 48 | } 49 | 50 | - (IBAction)searchAnswer:(id)sender { 51 | NSLog(@"search answer: %@", [self.searchField stringValue]); 52 | PPSearchType type = (self.typeSelector.selectedTag == 0) ? PPJBSEARCHTYPE : PPSTORESEARCHTYPE; 53 | [self.fetcher searchAppWithKeyword:[self.searchField stringValue] searchType:type maxResultCount:15]; 54 | } 55 | 56 | //- (void)setResultsTableView:(NSTableView *)resultsTableView { 57 | // if (resultsTableView != self.resultsTableView) { 58 | // self.resultsTableView = resultsTableView; 59 | // resultsTableView.dataSource = self; 60 | // resultsTableView.delegate = self; 61 | // } 62 | //} 63 | 64 | - (void)appDataFetched: (NSNotification *)notification { 65 | dispatch_async(dispatch_get_main_queue(), ^{ 66 | [self.resultsTableView reloadData]; 67 | }); 68 | } 69 | 70 | - (void)returnKeyPressed: (NSNotification *)notification { 71 | [self downloadIpaForRow:self.resultsTableView.selectedRow]; 72 | } 73 | 74 | - (void)handleDoubleClick: (id)sender { 75 | [self downloadIpaForRow: self.resultsTableView.clickedRow]; 76 | } 77 | 78 | - (void)downloadIpaForRow: (NSInteger)row { 79 | ISApp *app = self.fetcher.apps[row]; 80 | [[NSWorkspace sharedWorkspace] openURL:app.ipaUrl]; 81 | } 82 | 83 | #pragma mark - NSTableViewDataSource methods 84 | 85 | - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView { 86 | return self.fetcher.count; 87 | } 88 | 89 | - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 90 | ISApp *app = self.fetcher.apps[row]; 91 | NSString *identifier = tableColumn.identifier; 92 | ISResultsTableCellView *cellView = [tableView makeViewWithIdentifier:identifier owner:self]; 93 | [cellView showInfoOfApp: app]; 94 | return cellView; 95 | } 96 | 97 | #pragma mark = NSTableViewDelegate methods 98 | 99 | - (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row { 100 | self.downloadBarButton.hidden = NO; 101 | self.downloadBarButton.action = @selector(returnKeyPressed:); 102 | ISApp *app = self.fetcher.apps[row]; 103 | self.showInfoBarButton.collapsedRepresentation.hidden = NO; 104 | [self.infoBarTextView setString:app.desc]; 105 | return YES; 106 | } 107 | 108 | @end 109 | -------------------------------------------------------------------------------- /IPASearch/ISPPDataFetcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // ISPPDataFetcher.m 3 | // IPASearch 4 | // 5 | // Created by Wang Jinli on 2016/10/27. 6 | // Copyright © 2016 Wang Jinli. All rights reserved. 7 | // 8 | 9 | #import "ISPPDataFetcher.h" 10 | 11 | @implementation ISPPDataFetcher 12 | 13 | - (id)init { 14 | if (self = [super init]) { 15 | self.count = 0; 16 | self.maxCount = 0; 17 | } 18 | return self; 19 | } 20 | 21 | - (void)searchAppWithKeyword: (NSString *)keyword searchType: (PPSearchType)type maxResultCount: (int)count { 22 | self.maxCount = count; 23 | NSString *tunnel = (type == PPJBSEARCHTYPE) ? PPJBSEARCHTUNNELCOMMAND : PPSTORESEARCHTUNNELCOMMAND; 24 | NSNumber *clFlag = (type == PPJBSEARCHTYPE) ? [NSNumber numberWithInt:1] : [NSNumber numberWithInt:3]; 25 | 26 | NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:PPSEARCHURL]]; 27 | [request setHTTPMethod:@"POST"]; 28 | NSDictionary *params = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:0], @"dcType", 29 | keyword, @"keyword", 30 | clFlag, @"clFlag", 31 | [NSNumber numberWithInt:count], @"perCount", 32 | [NSNumber numberWithInt:0], @"page", nil]; 33 | NSError *error; 34 | NSData *postData = [NSJSONSerialization dataWithJSONObject:params options:0 error:&error]; 35 | [request setHTTPBody:postData]; 36 | [request setValue:tunnel forHTTPHeaderField:@"Tunnel-Command"]; 37 | 38 | NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; 39 | NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration delegate:self delegateQueue:nil]; 40 | NSURLSessionDataTask *postDataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { 41 | [self handleReceivedData: data response:response error:error]; 42 | }]; 43 | [postDataTask resume]; 44 | } 45 | 46 | - (void)handleReceivedData: (NSData *)data response: (NSURLResponse *)response error: (NSError *)error { 47 | if (error == nil) { // Request finished successfully. 48 | NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response; 49 | self.statusCode = httpResponse.statusCode; 50 | if (self.statusCode == 200) { // Request succeeded. 51 | [self parseAppData: data]; 52 | } 53 | else { 54 | NSLog(@"Bad HTTP status code (%ld).", (long)self.statusCode); 55 | } 56 | } 57 | else { 58 | NSLog(@"Request failed. %@", error); 59 | } 60 | } 61 | 62 | - (void)parseAppData: (NSData *)data { 63 | NSError *error = nil; 64 | id object = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; 65 | if (error) { 66 | NSLog(@"Bad JSON Data."); 67 | self.statusCode = 601; 68 | return; 69 | } 70 | if(![object isKindOfClass:[NSDictionary class]]) { 71 | NSLog(@"Invalid JSON."); 72 | self.statusCode = 602; 73 | return; 74 | } 75 | NSDictionary *results = object; 76 | self.statusCode = [[results objectForKey:@"status"] integerValue]; 77 | if (self.statusCode != 0) { 78 | NSLog(@"Bad Response (code: %ld).", (long)self.statusCode); 79 | return; 80 | } 81 | // Parse Correct Result. 82 | NSInteger fetchedCount = [[results objectForKey:@"searchCount"] integerValue]; 83 | self.count = (fetchedCount > self.maxCount) ? self.maxCount : fetchedCount; 84 | self.apps = [NSMutableArray array]; 85 | if (self.count == 0) { 86 | return; 87 | } 88 | NSArray *appInfo = [results objectForKey:@"content"]; 89 | self.count = [appInfo count]; // Make sure the app's count is correct. 90 | for (NSDictionary *aApp in appInfo) { 91 | NSURL *iconUrl = [NSURL URLWithString:[aApp objectForKey:@"thumb"]]; 92 | NSURL *ipaUrl = [NSURL URLWithString:[aApp objectForKey:@"downurl"]]; 93 | NSString *appName = [aApp objectForKey:@"title"]; 94 | NSString *version = [aApp objectForKey:@"version"]; 95 | NSString *size = [aApp objectForKey:@"fsize"]; 96 | NSString *description = [aApp objectForKey:@"desc"]; 97 | ISApp *app = [[ISApp alloc]initWithAppName:appName version:version size:size iconURL:iconUrl ipaURL:ipaUrl description:description]; 98 | [self.apps addObject:app]; 99 | } 100 | NSLog(@"Fetched data successfully."); 101 | [[NSNotificationCenter defaultCenter] postNotificationName:@"FetchedAppDataSuccessfully" object:self]; 102 | } 103 | 104 | @end 105 | -------------------------------------------------------------------------------- /IPASearch.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0AB00B231DC44CDE00DF1F09 /* ISResultsTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AB00B221DC44CDE00DF1F09 /* ISResultsTableView.m */; }; 11 | 0AD9D4211DC1C8E600EB2FCE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AD9D4201DC1C8E600EB2FCE /* AppDelegate.m */; }; 12 | 0AD9D4241DC1C8E600EB2FCE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AD9D4231DC1C8E600EB2FCE /* main.m */; }; 13 | 0AD9D4271DC1C8E600EB2FCE /* ISMainWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AD9D4261DC1C8E600EB2FCE /* ISMainWindowController.m */; }; 14 | 0AD9D4291DC1C8E600EB2FCE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0AD9D4281DC1C8E600EB2FCE /* Assets.xcassets */; }; 15 | 0AD9D42C1DC1C8E600EB2FCE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0AD9D42A1DC1C8E600EB2FCE /* Main.storyboard */; }; 16 | 0AD9D4351DC1D71A00EB2FCE /* ISResultsTableCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AD9D4341DC1D71A00EB2FCE /* ISResultsTableCellView.m */; }; 17 | 0AF7DB8A1DC1E0AD00CDDBC7 /* ISPPDataFetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7DB891DC1E0AD00CDDBC7 /* ISPPDataFetcher.m */; }; 18 | 0AF7DB8D1DC1E42D00CDDBC7 /* ISApp.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7DB8C1DC1E42D00CDDBC7 /* ISApp.m */; }; 19 | 0AF7DB8F1DC2287D00CDDBC7 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7DB8E1DC2287D00CDDBC7 /* Credits.rtf */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 0AB00B211DC44CDE00DF1F09 /* ISResultsTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISResultsTableView.h; sourceTree = ""; }; 24 | 0AB00B221DC44CDE00DF1F09 /* ISResultsTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ISResultsTableView.m; sourceTree = ""; }; 25 | 0AD9D41C1DC1C8E600EB2FCE /* IPASearch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IPASearch.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 0AD9D41F1DC1C8E600EB2FCE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 27 | 0AD9D4201DC1C8E600EB2FCE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 28 | 0AD9D4231DC1C8E600EB2FCE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29 | 0AD9D4251DC1C8E600EB2FCE /* ISMainWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISMainWindowController.h; sourceTree = ""; }; 30 | 0AD9D4261DC1C8E600EB2FCE /* ISMainWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ISMainWindowController.m; sourceTree = ""; }; 31 | 0AD9D4281DC1C8E600EB2FCE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 32 | 0AD9D42B1DC1C8E600EB2FCE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 33 | 0AD9D42D1DC1C8E600EB2FCE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 0AD9D4331DC1D71A00EB2FCE /* ISResultsTableCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISResultsTableCellView.h; sourceTree = ""; }; 35 | 0AD9D4341DC1D71A00EB2FCE /* ISResultsTableCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ISResultsTableCellView.m; sourceTree = ""; }; 36 | 0AF7DB881DC1E0AD00CDDBC7 /* ISPPDataFetcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISPPDataFetcher.h; sourceTree = ""; }; 37 | 0AF7DB891DC1E0AD00CDDBC7 /* ISPPDataFetcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ISPPDataFetcher.m; sourceTree = ""; }; 38 | 0AF7DB8B1DC1E42D00CDDBC7 /* ISApp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISApp.h; sourceTree = ""; }; 39 | 0AF7DB8C1DC1E42D00CDDBC7 /* ISApp.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ISApp.m; sourceTree = ""; }; 40 | 0AF7DB8E1DC2287D00CDDBC7 /* Credits.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = ""; }; 41 | /* End PBXFileReference section */ 42 | 43 | /* Begin PBXFrameworksBuildPhase section */ 44 | 0AD9D4191DC1C8E600EB2FCE /* Frameworks */ = { 45 | isa = PBXFrameworksBuildPhase; 46 | buildActionMask = 2147483647; 47 | files = ( 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | /* End PBXFrameworksBuildPhase section */ 52 | 53 | /* Begin PBXGroup section */ 54 | 0AD9D4131DC1C8E600EB2FCE = { 55 | isa = PBXGroup; 56 | children = ( 57 | 0AD9D41E1DC1C8E600EB2FCE /* IPASearch */, 58 | 0AD9D41D1DC1C8E600EB2FCE /* Products */, 59 | ); 60 | sourceTree = ""; 61 | }; 62 | 0AD9D41D1DC1C8E600EB2FCE /* Products */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 0AD9D41C1DC1C8E600EB2FCE /* IPASearch.app */, 66 | ); 67 | name = Products; 68 | sourceTree = ""; 69 | }; 70 | 0AD9D41E1DC1C8E600EB2FCE /* IPASearch */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 0AD9D41F1DC1C8E600EB2FCE /* AppDelegate.h */, 74 | 0AD9D4201DC1C8E600EB2FCE /* AppDelegate.m */, 75 | 0AD9D4251DC1C8E600EB2FCE /* ISMainWindowController.h */, 76 | 0AD9D4261DC1C8E600EB2FCE /* ISMainWindowController.m */, 77 | 0AF7DB881DC1E0AD00CDDBC7 /* ISPPDataFetcher.h */, 78 | 0AF7DB8B1DC1E42D00CDDBC7 /* ISApp.h */, 79 | 0AF7DB8C1DC1E42D00CDDBC7 /* ISApp.m */, 80 | 0AF7DB891DC1E0AD00CDDBC7 /* ISPPDataFetcher.m */, 81 | 0AD9D4281DC1C8E600EB2FCE /* Assets.xcassets */, 82 | 0AD9D42A1DC1C8E600EB2FCE /* Main.storyboard */, 83 | 0AD9D4331DC1D71A00EB2FCE /* ISResultsTableCellView.h */, 84 | 0AD9D4341DC1D71A00EB2FCE /* ISResultsTableCellView.m */, 85 | 0AB00B211DC44CDE00DF1F09 /* ISResultsTableView.h */, 86 | 0AB00B221DC44CDE00DF1F09 /* ISResultsTableView.m */, 87 | 0AD9D42D1DC1C8E600EB2FCE /* Info.plist */, 88 | 0AD9D4221DC1C8E600EB2FCE /* Supporting Files */, 89 | ); 90 | path = IPASearch; 91 | sourceTree = ""; 92 | }; 93 | 0AD9D4221DC1C8E600EB2FCE /* Supporting Files */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 0AD9D4231DC1C8E600EB2FCE /* main.m */, 97 | 0AF7DB8E1DC2287D00CDDBC7 /* Credits.rtf */, 98 | ); 99 | name = "Supporting Files"; 100 | sourceTree = ""; 101 | }; 102 | /* End PBXGroup section */ 103 | 104 | /* Begin PBXNativeTarget section */ 105 | 0AD9D41B1DC1C8E600EB2FCE /* IPASearch */ = { 106 | isa = PBXNativeTarget; 107 | buildConfigurationList = 0AD9D4301DC1C8E600EB2FCE /* Build configuration list for PBXNativeTarget "IPASearch" */; 108 | buildPhases = ( 109 | 0AD9D4181DC1C8E600EB2FCE /* Sources */, 110 | 0AD9D4191DC1C8E600EB2FCE /* Frameworks */, 111 | 0AD9D41A1DC1C8E600EB2FCE /* Resources */, 112 | ); 113 | buildRules = ( 114 | ); 115 | dependencies = ( 116 | ); 117 | name = IPASearch; 118 | productName = IPASearch; 119 | productReference = 0AD9D41C1DC1C8E600EB2FCE /* IPASearch.app */; 120 | productType = "com.apple.product-type.application"; 121 | }; 122 | /* End PBXNativeTarget section */ 123 | 124 | /* Begin PBXProject section */ 125 | 0AD9D4141DC1C8E600EB2FCE /* Project object */ = { 126 | isa = PBXProject; 127 | attributes = { 128 | LastUpgradeCheck = 0810; 129 | ORGANIZATIONNAME = "Wang Jinli"; 130 | TargetAttributes = { 131 | 0AD9D41B1DC1C8E600EB2FCE = { 132 | CreatedOnToolsVersion = 8.0; 133 | DevelopmentTeam = 7X9UFZRCPT; 134 | ProvisioningStyle = Automatic; 135 | }; 136 | }; 137 | }; 138 | buildConfigurationList = 0AD9D4171DC1C8E600EB2FCE /* Build configuration list for PBXProject "IPASearch" */; 139 | compatibilityVersion = "Xcode 3.2"; 140 | developmentRegion = English; 141 | hasScannedForEncodings = 0; 142 | knownRegions = ( 143 | en, 144 | Base, 145 | ); 146 | mainGroup = 0AD9D4131DC1C8E600EB2FCE; 147 | productRefGroup = 0AD9D41D1DC1C8E600EB2FCE /* Products */; 148 | projectDirPath = ""; 149 | projectRoot = ""; 150 | targets = ( 151 | 0AD9D41B1DC1C8E600EB2FCE /* IPASearch */, 152 | ); 153 | }; 154 | /* End PBXProject section */ 155 | 156 | /* Begin PBXResourcesBuildPhase section */ 157 | 0AD9D41A1DC1C8E600EB2FCE /* Resources */ = { 158 | isa = PBXResourcesBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 0AD9D4291DC1C8E600EB2FCE /* Assets.xcassets in Resources */, 162 | 0AF7DB8F1DC2287D00CDDBC7 /* Credits.rtf in Resources */, 163 | 0AD9D42C1DC1C8E600EB2FCE /* Main.storyboard in Resources */, 164 | ); 165 | runOnlyForDeploymentPostprocessing = 0; 166 | }; 167 | /* End PBXResourcesBuildPhase section */ 168 | 169 | /* Begin PBXSourcesBuildPhase section */ 170 | 0AD9D4181DC1C8E600EB2FCE /* Sources */ = { 171 | isa = PBXSourcesBuildPhase; 172 | buildActionMask = 2147483647; 173 | files = ( 174 | 0AD9D4351DC1D71A00EB2FCE /* ISResultsTableCellView.m in Sources */, 175 | 0AD9D4271DC1C8E600EB2FCE /* ISMainWindowController.m in Sources */, 176 | 0AF7DB8A1DC1E0AD00CDDBC7 /* ISPPDataFetcher.m in Sources */, 177 | 0AD9D4241DC1C8E600EB2FCE /* main.m in Sources */, 178 | 0AD9D4211DC1C8E600EB2FCE /* AppDelegate.m in Sources */, 179 | 0AF7DB8D1DC1E42D00CDDBC7 /* ISApp.m in Sources */, 180 | 0AB00B231DC44CDE00DF1F09 /* ISResultsTableView.m in Sources */, 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | }; 184 | /* End PBXSourcesBuildPhase section */ 185 | 186 | /* Begin PBXVariantGroup section */ 187 | 0AD9D42A1DC1C8E600EB2FCE /* Main.storyboard */ = { 188 | isa = PBXVariantGroup; 189 | children = ( 190 | 0AD9D42B1DC1C8E600EB2FCE /* Base */, 191 | ); 192 | name = Main.storyboard; 193 | sourceTree = ""; 194 | }; 195 | /* End PBXVariantGroup section */ 196 | 197 | /* Begin XCBuildConfiguration section */ 198 | 0AD9D42E1DC1C8E600EB2FCE /* Debug */ = { 199 | isa = XCBuildConfiguration; 200 | buildSettings = { 201 | ALWAYS_SEARCH_USER_PATHS = NO; 202 | CLANG_ANALYZER_NONNULL = YES; 203 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 204 | CLANG_CXX_LIBRARY = "libc++"; 205 | CLANG_ENABLE_MODULES = YES; 206 | CLANG_ENABLE_OBJC_ARC = YES; 207 | CLANG_WARN_BOOL_CONVERSION = YES; 208 | CLANG_WARN_CONSTANT_CONVERSION = YES; 209 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 210 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 211 | CLANG_WARN_EMPTY_BODY = YES; 212 | CLANG_WARN_ENUM_CONVERSION = YES; 213 | CLANG_WARN_INFINITE_RECURSION = YES; 214 | CLANG_WARN_INT_CONVERSION = YES; 215 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 216 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 217 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 218 | CLANG_WARN_UNREACHABLE_CODE = YES; 219 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 220 | CODE_SIGN_IDENTITY = "-"; 221 | COPY_PHASE_STRIP = NO; 222 | DEBUG_INFORMATION_FORMAT = dwarf; 223 | ENABLE_STRICT_OBJC_MSGSEND = YES; 224 | ENABLE_TESTABILITY = YES; 225 | GCC_C_LANGUAGE_STANDARD = gnu99; 226 | GCC_DYNAMIC_NO_PIC = NO; 227 | GCC_NO_COMMON_BLOCKS = YES; 228 | GCC_OPTIMIZATION_LEVEL = 0; 229 | GCC_PREPROCESSOR_DEFINITIONS = ( 230 | "DEBUG=1", 231 | "$(inherited)", 232 | ); 233 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 234 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 235 | GCC_WARN_UNDECLARED_SELECTOR = YES; 236 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 237 | GCC_WARN_UNUSED_FUNCTION = YES; 238 | GCC_WARN_UNUSED_VARIABLE = YES; 239 | MACOSX_DEPLOYMENT_TARGET = 10.12; 240 | MTL_ENABLE_DEBUG_INFO = YES; 241 | ONLY_ACTIVE_ARCH = YES; 242 | SDKROOT = macosx; 243 | }; 244 | name = Debug; 245 | }; 246 | 0AD9D42F1DC1C8E600EB2FCE /* Release */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | ALWAYS_SEARCH_USER_PATHS = NO; 250 | CLANG_ANALYZER_NONNULL = YES; 251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 252 | CLANG_CXX_LIBRARY = "libc++"; 253 | CLANG_ENABLE_MODULES = YES; 254 | CLANG_ENABLE_OBJC_ARC = YES; 255 | CLANG_WARN_BOOL_CONVERSION = YES; 256 | CLANG_WARN_CONSTANT_CONVERSION = YES; 257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 258 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 259 | CLANG_WARN_EMPTY_BODY = YES; 260 | CLANG_WARN_ENUM_CONVERSION = YES; 261 | CLANG_WARN_INFINITE_RECURSION = YES; 262 | CLANG_WARN_INT_CONVERSION = YES; 263 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 264 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 265 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 266 | CLANG_WARN_UNREACHABLE_CODE = YES; 267 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 268 | CODE_SIGN_IDENTITY = "-"; 269 | COPY_PHASE_STRIP = NO; 270 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 271 | ENABLE_NS_ASSERTIONS = NO; 272 | ENABLE_STRICT_OBJC_MSGSEND = YES; 273 | GCC_C_LANGUAGE_STANDARD = gnu99; 274 | GCC_NO_COMMON_BLOCKS = YES; 275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 279 | GCC_WARN_UNUSED_FUNCTION = YES; 280 | GCC_WARN_UNUSED_VARIABLE = YES; 281 | MACOSX_DEPLOYMENT_TARGET = 10.12; 282 | MTL_ENABLE_DEBUG_INFO = NO; 283 | SDKROOT = macosx; 284 | }; 285 | name = Release; 286 | }; 287 | 0AD9D4311DC1C8E600EB2FCE /* Debug */ = { 288 | isa = XCBuildConfiguration; 289 | buildSettings = { 290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 291 | CODE_SIGN_IDENTITY = "Mac Developer"; 292 | COMBINE_HIDPI_IMAGES = YES; 293 | DEVELOPMENT_TEAM = 7X9UFZRCPT; 294 | INFOPLIST_FILE = IPASearch/Info.plist; 295 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 296 | PRODUCT_BUNDLE_IDENTIFIER = com.wangjinli.IPASearch; 297 | PRODUCT_NAME = "$(TARGET_NAME)"; 298 | }; 299 | name = Debug; 300 | }; 301 | 0AD9D4321DC1C8E600EB2FCE /* Release */ = { 302 | isa = XCBuildConfiguration; 303 | buildSettings = { 304 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 305 | CODE_SIGN_IDENTITY = "Mac Developer"; 306 | COMBINE_HIDPI_IMAGES = YES; 307 | DEVELOPMENT_TEAM = 7X9UFZRCPT; 308 | INFOPLIST_FILE = IPASearch/Info.plist; 309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 310 | PRODUCT_BUNDLE_IDENTIFIER = com.wangjinli.IPASearch; 311 | PRODUCT_NAME = "$(TARGET_NAME)"; 312 | }; 313 | name = Release; 314 | }; 315 | /* End XCBuildConfiguration section */ 316 | 317 | /* Begin XCConfigurationList section */ 318 | 0AD9D4171DC1C8E600EB2FCE /* Build configuration list for PBXProject "IPASearch" */ = { 319 | isa = XCConfigurationList; 320 | buildConfigurations = ( 321 | 0AD9D42E1DC1C8E600EB2FCE /* Debug */, 322 | 0AD9D42F1DC1C8E600EB2FCE /* Release */, 323 | ); 324 | defaultConfigurationIsVisible = 0; 325 | defaultConfigurationName = Release; 326 | }; 327 | 0AD9D4301DC1C8E600EB2FCE /* Build configuration list for PBXNativeTarget "IPASearch" */ = { 328 | isa = XCConfigurationList; 329 | buildConfigurations = ( 330 | 0AD9D4311DC1C8E600EB2FCE /* Debug */, 331 | 0AD9D4321DC1C8E600EB2FCE /* Release */, 332 | ); 333 | defaultConfigurationIsVisible = 0; 334 | defaultConfigurationName = Release; 335 | }; 336 | /* End XCConfigurationList section */ 337 | }; 338 | rootObject = 0AD9D4141DC1C8E600EB2FCE /* Project object */; 339 | } 340 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | -------------------------------------------------------------------------------- /IPASearch/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | Default 514 | 515 | 516 | 517 | 518 | 519 | 520 | Left to Right 521 | 522 | 523 | 524 | 525 | 526 | 527 | Right to Left 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | Default 539 | 540 | 541 | 542 | 543 | 544 | 545 | Left to Right 546 | 547 | 548 | 549 | 550 | 551 | 552 | Right to Left 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 805 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 891 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | --------------------------------------------------------------------------------