Skip to content

Commit

Permalink
用OC重写。
Browse files Browse the repository at this point in the history
  • Loading branch information
answer committed Nov 8, 2016
1 parent 3b7f31d commit f5aa1e6
Show file tree
Hide file tree
Showing 137 changed files with 2,821 additions and 6 deletions.
Binary file added DSYMTools_1.0.4.zip
Binary file not shown.
370 changes: 370 additions & 0 deletions Objective-C/DSYMTools.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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 />
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
scope = "0"
stopOnStyle = "0">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "80817F261D45F4D500CD2A11"
BuildableName = "DSYMTools.app"
BlueprintName = "DSYMTools"
ReferencedContainer = "container:DSYMTools.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "80817F261D45F4D500CD2A11"
BuildableName = "DSYMTools.app"
BlueprintName = "DSYMTools"
ReferencedContainer = "container:DSYMTools.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "80817F261D45F4D500CD2A11"
BuildableName = "DSYMTools.app"
BlueprintName = "DSYMTools"
ReferencedContainer = "container:DSYMTools.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "80817F261D45F4D500CD2A11"
BuildableName = "DSYMTools.app"
BlueprintName = "DSYMTools"
ReferencedContainer = "container:DSYMTools.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>SchemeUserState</key>
<dict>
<key>DSYMTools.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>80817F261D45F4D500CD2A11</key>
<dict>
<key>primary</key>
<true />
</dict>
</dict>
</dict>
</plist>
15 changes: 15 additions & 0 deletions Objective-C/DSYMTools/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// DSYMTools
//
// Created by answer on 7/25/16.
// Copyright © 2016 answer. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>


@end

96 changes: 96 additions & 0 deletions Objective-C/DSYMTools/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
//
// AppDelegate.m
// DSYMTools
//
// Created by answer on 7/25/16.
// Copyright © 2016 answer. All rights reserved.
//

#import "AppDelegate.h"
#import "MainWindowViewController.h"

@interface AppDelegate ()


@property (strong) MainWindowViewController *mainWindowViewController;

@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
self.mainWindowViewController = [[MainWindowViewController alloc] initWithWindowNibName:@"MainWindowViewController"];
[self.mainWindowViewController showWindow:self];
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}

/**
* 关闭最后一个 window 的时候关闭应用
*
* @param sender
*
* @return
*/
//- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender{
// return YES;
//}

/**
* 监听窗口关闭的通知,关闭程序。
*
* @param notification
*/
//- (void) receiveWindowWillCloseMsg:(NSNotification *)notification{
// NSWindow *window = notification.object;
// if(window == self.window){
// [NSApp terminate:self];
// }
//}

//- (IBAction)openFilePanel:(id)sender {
// NSOpenPanel *openDlg = [NSOpenPanel openPanel];
// openDlg.canChooseFiles = YES;
// openDlg.canChooseDirectories = YES;
// openDlg.allowsMultipleSelection = YES;
// openDlg.allowedFileTypes = @[@"txt"];
// [openDlg beginWithCompletionHandler:^(NSInteger result) {
// if (result == NSFileHandlingPanelOKButton) {
// NSArray *fileURLs = [openDlg URLs];
// for (NSURL *url in fileURLs) {
// NSError *error;
// NSString *string = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error];
// if (!error) {
// self.textView.string = string;
// }
// }
// }
// }];
//
//}
//
//- (IBAction)saveFileAction:(id)sender {
// NSSavePanel *saveDlg = [[NSSavePanel alloc]init];
// saveDlg.title = @"Save File";
// saveDlg.message = @"Save My File";
// saveDlg.allowedFileTypes = @[@"txt"];
// saveDlg.nameFieldStringValue = @"my";
// [saveDlg beginWithCompletionHandler: ^(NSInteger result){
// if(result==NSFileHandlingPanelOKButton){
// NSURL *url =[saveDlg URL];
// NSLog(@"filePath url%@",url);
// NSString *text = self.textView.string;
// NSError *error;
// [text writeToURL:url atomically:YES encoding:NSUTF8StringEncoding error:&error];
// if(error){
// NSLog(@"save file error %@",error);
// }
// }
// }];
//}


@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"images" : [
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon16.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon32.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "icon32-1.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "icon64.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "icon128.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "icon256.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "icon256-1.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "icon512.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "icon512-1.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "icon1024.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Objective-C/DSYMTools/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
21 changes: 21 additions & 0 deletions Objective-C/DSYMTools/Assets.xcassets/about.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "about.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
File renamed without changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "avatar.jpg",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
File renamed without changes
Loading

0 comments on commit f5aa1e6

Please sign in to comment.