├── CommentStatement.gif ├── CommentStatement ├── CodeStatement.h ├── CodeStatement.m ├── CommentStatement.entitlements ├── CommentStatementCommand.h ├── CommentStatementCommand.m ├── CommentStatementExtension.h ├── CommentStatementExtension.m └── Info.plist ├── README.md ├── WTToolBox.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── suiwentao.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── wintel.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── suiwentao.xcuserdatad │ └── xcschemes │ │ ├── CommentStatement.xcscheme │ │ ├── WTToolBox.xcscheme │ │ └── xcschememanagement.plist │ └── wintel.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── CommentStatement.xcscheme │ ├── WTToolBox.xcscheme │ └── xcschememanagement.plist ├── WTToolBox ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m └── documentAdd.gif /CommentStatement.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wintelsui-zz/WTxcodeToolBox/41aad0e7ec1cdca904694021ce97b30ef666e9c0/CommentStatement.gif -------------------------------------------------------------------------------- /CommentStatement/CodeStatement.h: -------------------------------------------------------------------------------- 1 | // 2 | // CodeStatement.h 3 | // WTToolBox 4 | // 5 | // Created by 隋文涛 on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CodeStatement : NSObject 12 | + (void)statementCommand:(XCSourceEditorCommandInvocation *)invocation; 13 | + (void)documentAdd:(XCSourceEditorCommandInvocation *)invocation; 14 | @end 15 | -------------------------------------------------------------------------------- /CommentStatement/CodeStatement.m: -------------------------------------------------------------------------------- 1 | // 2 | // CodeStatement.m 3 | // WTToolBox 4 | // 5 | // Created by 隋文涛 on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import "CodeStatement.h" 10 | 11 | @implementation CodeStatement 12 | + (void)statementCommand:(XCSourceEditorCommandInvocation *)invocation{ 13 | for (XCSourceTextRange *range in invocation.buffer.selections) { 14 | NSInteger startLine = range.start.line; 15 | NSInteger startColumn = range.start.column; 16 | NSInteger endLine = range.end.line; 17 | NSInteger endColumn = range.end.column; 18 | 19 | BOOL isAdd = NO; 20 | for (NSInteger index = startLine; index <= endLine ;index ++){ 21 | NSString *line = [self deleteFirstSpace:invocation.buffer.lines[index]]; 22 | //去掉了顶头的所有空格 23 | 24 | if (line == nil || line.length == 0 || ![line hasPrefix:@"//"]) { 25 | isAdd = YES; 26 | break; 27 | } 28 | } 29 | 30 | for (NSInteger index = startLine; index <= endLine ;index ++){ 31 | NSString *line = invocation.buffer.lines[index]; 32 | if (line == nil) { 33 | line = @""; 34 | } 35 | NSMutableString *stringNew = [[NSMutableString alloc] initWithString:line]; 36 | if (isAdd) { 37 | //添加注释 38 | [stringNew insertString:@"//" atIndex:0]; 39 | }else{ 40 | //删除注释 41 | NSRange range = [stringNew rangeOfString:@"//"]; 42 | [stringNew replaceCharactersInRange:range withString:@""]; 43 | } 44 | [invocation.buffer.lines replaceObjectAtIndex:index withObject:stringNew]; 45 | } 46 | } 47 | } 48 | 49 | + (void)documentAdd:(XCSourceEditorCommandInvocation *)invocation{ 50 | NSMutableString *stringDuel = [[NSMutableString alloc] init]; 51 | NSInteger insertLine = -1; 52 | 53 | for (XCSourceTextRange *range in invocation.buffer.selections) { 54 | 55 | NSInteger startLine = range.start.line; 56 | NSInteger startColumn = range.start.column; 57 | NSInteger endLine = range.end.line; 58 | NSInteger endColumn = range.end.column; 59 | 60 | 61 | NSInteger linecount = [invocation.buffer.lines count]; 62 | 63 | BOOL valid = NO; 64 | BOOL needUp = YES;//需要向上检索 65 | for (NSInteger index = startLine; index < linecount ;index ++){ 66 | NSString *line = [self deleteFirstSpace:invocation.buffer.lines[index]]; 67 | if (line != nil && line.length > 0 && ![line isEqualToString:@"\n"]) { 68 | if ([line rangeOfString:@"{"].length > 0 || [line rangeOfString:@";"].length > 0) { 69 | //方法名称结束 70 | valid = YES; 71 | } 72 | if (stringDuel.length == 0) { 73 | [stringDuel appendString:line]; 74 | }else{ 75 | [stringDuel appendFormat:@" %@",line]; 76 | } 77 | 78 | if (needUp) { 79 | if ([line hasPrefix:@"-"] || [line hasPrefix:@"+"]) { 80 | //方法的开始 81 | needUp = NO; 82 | insertLine = index; 83 | } 84 | } 85 | 86 | if (valid) { 87 | //已经检测到结尾 88 | break; 89 | } 90 | } 91 | } 92 | 93 | if (!valid) { 94 | return; 95 | } 96 | if (needUp){ 97 | //没有找到方法的开始位置 98 | if (startLine > 0) { 99 | for (NSInteger index = startLine - 1 ; index > 0 ;index --){ 100 | NSString *line = [self deleteFirstSpace:invocation.buffer.lines[index]]; 101 | if (line != nil && line.length > 0) { 102 | if ([line rangeOfString:@"{"].length > 0 || [line rangeOfString:@";"].length > 0) { 103 | //方法名称结束 104 | valid = NO; 105 | break; 106 | } 107 | 108 | if (stringDuel.length == 0) { 109 | [stringDuel insertString:line atIndex:0]; 110 | }else{ 111 | [stringDuel insertString:[NSString stringWithFormat:@"%@ ",line] atIndex:0]; 112 | } 113 | if ([line hasPrefix:@"-"] || [line hasPrefix:@"+"]) { 114 | //方法的开始 115 | needUp = NO; 116 | insertLine = index; 117 | break; 118 | } 119 | } 120 | } 121 | }else{ 122 | return; 123 | } 124 | } 125 | 126 | if (needUp || !valid) { 127 | return; 128 | } 129 | 130 | 131 | } 132 | 133 | NSLog(@"stringDuel:%@",stringDuel); 134 | 135 | // NSArray *lines = [replace componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]; 136 | // update buffer 137 | 138 | // [invocation.buffer.lines replaceObjectsInRange:NSMakeRange(insertLine, 0) 139 | //withObjectsFromArray:lines]; 140 | 141 | NSMutableArray *insertStrings = [[NSMutableArray alloc] init]; 142 | [insertStrings addObject:@"/**\n"]; 143 | [insertStrings addObject:@" * @brief <#brief#>\n"]; 144 | [insertStrings addObject:@" *\n"]; 145 | 146 | BOOL returnNA = NO; 147 | 148 | NSArray *cut = [stringDuel componentsSeparatedByString:@":"]; 149 | NSInteger cutCount = [cut count]; 150 | if (cut != nil && cutCount > 0) { 151 | NSString *stringReturn = [cut firstObject]; 152 | { 153 | NSArray *array_return = [self regularFinder:@"\\(.*\\)" string:stringReturn]; 154 | if ([array_return count]) { 155 | for (id XX in array_return) { 156 | NSRange resultRange = [XX rangeAtIndex:0]; 157 | NSString *result = [stringReturn substringWithRange:resultRange]; 158 | if ([[result lowercaseString] rangeOfString:@"void"].length > 0) { 159 | returnNA = YES; 160 | } 161 | break; 162 | } 163 | } 164 | } 165 | 166 | BOOL parameter = NO; 167 | NSMutableArray *parameters = [[NSMutableArray alloc] init]; 168 | NSInteger lengthMax = 0; 169 | for (int i = 1; i < cutCount; i++) { 170 | NSString *stringParameter = [cut objectAtIndex:i]; 171 | NSRange range = [stringParameter rangeOfString:@")"]; 172 | if (range.length > 0) { 173 | NSInteger start = -1; 174 | NSInteger end = -1; 175 | for (NSInteger j = range.location + 1; j < stringParameter.length; j++) { 176 | char sub = [stringParameter characterAtIndex:j]; 177 | if (sub == ' ') { 178 | if (start == -1) { 179 | 180 | }else{ 181 | end = j; 182 | break; 183 | } 184 | }else{ 185 | if (start == -1) { 186 | start = j; 187 | } 188 | } 189 | } 190 | if (start != -1 && end != -1) { 191 | range.location = start; 192 | range.length = end - start; 193 | NSString *parameterName = [stringParameter substringWithRange:range]; 194 | parameterName = [parameterName stringByReplacingOccurrencesOfString:@"\n" withString:@""]; 195 | if (parameterName != nil && parameterName.length > 0) { 196 | if (range.length >= lengthMax) { 197 | lengthMax = range.length; 198 | } 199 | [parameters addObject:parameterName]; 200 | } 201 | } 202 | } 203 | } 204 | 205 | NSInteger len = @" * @param ".length + lengthMax + 1; 206 | for (NSInteger index = 0; index < [parameters count]; index ++) { 207 | NSString *parameterName = [parameters objectAtIndex:index]; 208 | NSMutableString *strtup = [[NSMutableString alloc] init]; 209 | [strtup appendFormat:@" * @param %@ ",parameterName]; 210 | while (strtup.length < len) { 211 | [strtup appendString:@" "]; 212 | } 213 | 214 | [strtup appendFormat:@"<#%@ description#> \n",parameterName]; 215 | [insertStrings addObject:strtup]; 216 | NSLog(@"%@",strtup); 217 | parameter = YES; 218 | } 219 | if (parameter) { 220 | [insertStrings addObject:@" *\n"]; 221 | } 222 | } 223 | if (returnNA) { 224 | if (1){ 225 | [insertStrings addObject:@" * @return N/A \n"]; 226 | } 227 | }else{ 228 | [insertStrings addObject:@" * @return <#return description#> \n"]; 229 | } 230 | [insertStrings addObject:@" */ \n"]; 231 | 232 | for (int i = 0 ; i < [insertStrings count]; i++){ 233 | NSString *ins = [insertStrings objectAtIndex:i]; 234 | [invocation.buffer.lines insertObject:ins atIndex:insertLine + i]; 235 | } 236 | } 237 | 238 | + (NSString *)deleteFirstSpace:(NSString *)oldString{ 239 | if (oldString == nil || oldString.length == 0) { 240 | return @""; 241 | } 242 | NSString *newString = oldString; 243 | while (newString.length > 0) { 244 | if ([newString hasPrefix:@" "]) { 245 | if (newString.length > 1) { 246 | newString = [newString substringFromIndex:1]; 247 | }else{ 248 | newString = @""; 249 | } 250 | }else{ 251 | break; 252 | } 253 | } 254 | return newString; 255 | } 256 | 257 | + (NSArray *)regularFinder:(NSString *)regular string:(NSString *)str{ 258 | NSError *error_finder; 259 | //这是检测正则表达式 260 | NSRegularExpression *regex_finder = [NSRegularExpression regularExpressionWithPattern:regular options:0 error:&error_finder]; 261 | if (regex_finder != nil) { 262 | NSArray *array_finder = [regex_finder matchesInString:str options:0 range:NSMakeRange(0, [str length])]; 263 | return array_finder; 264 | } 265 | return nil; 266 | } 267 | 268 | @end 269 | -------------------------------------------------------------------------------- /CommentStatement/CommentStatement.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CommentStatement/CommentStatementCommand.h: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorCommand.h 3 | // CommentStatement 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CommentStatementCommand : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CommentStatement/CommentStatementCommand.m: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorCommand.m 3 | // CommentStatement 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import "CommentStatementCommand.h" 10 | 11 | #import "CodeStatement.h" 12 | 13 | @implementation CommentStatementCommand 14 | 15 | - (void)performCommandWithInvocation:(XCSourceEditorCommandInvocation *)invocation completionHandler:(void (^)(NSError * _Nullable nilOrError))completionHandler 16 | { 17 | //com.wintel.WTToolBox.WTImageName.SourceEditorCommand 18 | //XCSourceEditorCommandDefinitions 19 | //$(PRODUCT_BUNDLE_IDENTIFIER).CommentStatementCommand 20 | NSString *identifier = invocation.commandIdentifier; 21 | 22 | if ([identifier hasSuffix:@"CommentStatement"]) { 23 | //注释代码 24 | [CodeStatement statementCommand:invocation]; 25 | }else if ([identifier hasSuffix:@"DocumentAdd"]) { 26 | //添加注释 27 | [CodeStatement documentAdd:invocation]; 28 | } 29 | completionHandler(nil); 30 | } 31 | @end 32 | -------------------------------------------------------------------------------- /CommentStatement/CommentStatementExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorExtension.h 3 | // CommentStatement 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CommentStatementExtension : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CommentStatement/CommentStatementExtension.m: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorExtension.m 3 | // CommentStatement 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import "CommentStatementExtension.h" 10 | 11 | @implementation CommentStatementExtension 12 | 13 | /* 14 | - (void)extensionDidFinishLaunching 15 | { 16 | // If your extension needs to do any work at launch, implement this optional method. 17 | } 18 | */ 19 | 20 | /* 21 | - (NSArray *> *)commandDefinitions 22 | { 23 | // If your extension needs to return a collection of command definitions that differs from those in its Info.plist, implement this optional property getter. 24 | return @[]; 25 | } 26 | */ 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /CommentStatement/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | WTComment 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 0.0.1 21 | CFBundleVersion 22 | 0.20161116.0.1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSExtension 26 | 27 | NSExtensionAttributes 28 | 29 | XCSourceEditorCommandDefinitions 30 | 31 | 32 | XCSourceEditorCommandClassName 33 | CommentStatementCommand 34 | XCSourceEditorCommandIdentifier 35 | $(PRODUCT_BUNDLE_IDENTIFIER).CommentStatement 36 | XCSourceEditorCommandName 37 | CommentStatement 38 | 39 | 40 | XCSourceEditorCommandClassName 41 | CommentStatementCommand 42 | XCSourceEditorCommandIdentifier 43 | $(PRODUCT_BUNDLE_IDENTIFIER).DocumentAdd 44 | XCSourceEditorCommandName 45 | DocumentAdd 46 | 47 | 48 | XCSourceEditorExtensionPrincipalClass 49 | CommentStatementExtension 50 | 51 | NSExtensionPointIdentifier 52 | com.apple.dt.Xcode.extension.source-editor 53 | 54 | NSHumanReadableCopyright 55 | Copyright © 2016年 wintelsui. All rights reserved. 56 | 57 | 58 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Xcode Source Editor Extensions Demo 2 | 3 | WTxcodeToolBox 4 | 5 | OS X - Application Extensions - Xcode Source Editor 6 | 7 | 编写好你的代码之后,运行extension scheme,当弹出"Choose an app to run"菜单时,选择Xcode 8,打开任意源文件,你的插件就会在"Editor"菜单出现。如果未出现,可能是因为你没有选择开发证书(免费 or 收费)都可 8 | 9 | ########################################################################################### 10 | ******************************************************************************************* 11 | 插件是可以在Xcode的Preferences的Key Bindings中设置快捷键的 12 | ########################################################################################### 13 | ******************************************************************************************* 14 | 最近使用xcode8 尝试开发一些新的SDK时,很郁闷,有 注释bug 和 不能用VVDocumenter所以花几个小时搞一个超级点单的山寨, 15 | 所以简单的自己先写一个插件自己用着,也许会在日后优化,更新功能😄,不过也不一定,丢人现眼了O(∩_∩)O哈! 16 | 也在研究的同学可以看看这个简单的Demo 17 | 不喜勿喷,学习中...... 18 | ########################################################################################### 19 | ******************************************************************************************* 20 | 21 | 1:CommentStatement 插件 22 | 23 | 包含功能: 24 | 25 | (1):CommentStatement 注释掉代码(即xcode原有的Comment Statement功能,因为xcode 8有bug 所以...)等效于 "command + /"; 26 | ![Screenshot](https://github.com/wintelsui/WTxcodeToolBox/blob/master/CommentStatement.gif?raw=true) 27 | 28 | (2):DocumentAdd 添加注释 (超级简单的山寨VVDocumenter)...暂时只能识别Objective-C 29 | ![Screenshot](https://github.com/wintelsui/WTxcodeToolBox/blob/master/documentAdd.gif?raw=true) 30 | 31 | 32 | ******************************************************************************************* 33 | 也许一些问题 34 | 35 | Xcode Source Editor Extensions for Xcode 8 36 | 第一次需要打开terminal,然后执行命令sudo /usr/libexec/xpccachectl 一次, 37 | 可能是Extension 需要 建议重启电脑. 38 | 39 | 40 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2B988FB71D75D90D00613DC2 /* CodeStatement.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B988FB61D75D90D00613DC2 /* CodeStatement.m */; }; 11 | FCD563C11D756A4E00CB8077 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FCD563C01D756A4E00CB8077 /* AppDelegate.m */; }; 12 | FCD563C41D756A4E00CB8077 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FCD563C31D756A4E00CB8077 /* main.m */; }; 13 | FCD563C71D756A4E00CB8077 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FCD563C61D756A4E00CB8077 /* ViewController.m */; }; 14 | FCD563C91D756A4E00CB8077 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FCD563C81D756A4E00CB8077 /* Assets.xcassets */; }; 15 | FCD563CC1D756A4E00CB8077 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FCD563CA1D756A4E00CB8077 /* Main.storyboard */; }; 16 | FCD563F11D75708F00CB8077 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FCD563D91D756A6A00CB8077 /* Cocoa.framework */; }; 17 | FCD563F71D75708F00CB8077 /* CommentStatementExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = FCD563F61D75708F00CB8077 /* CommentStatementExtension.m */; }; 18 | FCD563FA1D75708F00CB8077 /* CommentStatementCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = FCD563F91D75708F00CB8077 /* CommentStatementCommand.m */; }; 19 | FCD563FE1D75708F00CB8077 /* CommentStatement.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = FCD563F01D75708F00CB8077 /* CommentStatement.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | FCD563FC1D75708F00CB8077 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = FCD563B41D756A4E00CB8077 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = FCD563EF1D75708F00CB8077; 28 | remoteInfo = CommentStatement; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXCopyFilesBuildPhase section */ 33 | FCD563EB1D756A6A00CB8077 /* Embed App Extensions */ = { 34 | isa = PBXCopyFilesBuildPhase; 35 | buildActionMask = 2147483647; 36 | dstPath = ""; 37 | dstSubfolderSpec = 13; 38 | files = ( 39 | FCD563FE1D75708F00CB8077 /* CommentStatement.appex in Embed App Extensions */, 40 | ); 41 | name = "Embed App Extensions"; 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXCopyFilesBuildPhase section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | 2B988FB51D75D90D00613DC2 /* CodeStatement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CodeStatement.h; sourceTree = ""; }; 48 | 2B988FB61D75D90D00613DC2 /* CodeStatement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CodeStatement.m; sourceTree = ""; }; 49 | FCD563BC1D756A4E00CB8077 /* WTToolBox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WTToolBox.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | FCD563BF1D756A4E00CB8077 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 51 | FCD563C01D756A4E00CB8077 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 52 | FCD563C31D756A4E00CB8077 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 53 | FCD563C51D756A4E00CB8077 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 54 | FCD563C61D756A4E00CB8077 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 55 | FCD563C81D756A4E00CB8077 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | FCD563CB1D756A4E00CB8077 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | FCD563CD1D756A4E00CB8077 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | FCD563D91D756A6A00CB8077 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 59 | FCD563F01D75708F00CB8077 /* CommentStatement.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = CommentStatement.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | FCD563F41D75708F00CB8077 /* CommentStatement.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = CommentStatement.entitlements; sourceTree = ""; }; 61 | FCD563F51D75708F00CB8077 /* CommentStatementExtension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CommentStatementExtension.h; sourceTree = ""; }; 62 | FCD563F61D75708F00CB8077 /* CommentStatementExtension.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CommentStatementExtension.m; sourceTree = ""; }; 63 | FCD563F81D75708F00CB8077 /* CommentStatementCommand.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CommentStatementCommand.h; sourceTree = ""; }; 64 | FCD563F91D75708F00CB8077 /* CommentStatementCommand.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CommentStatementCommand.m; sourceTree = ""; }; 65 | FCD563FB1D75708F00CB8077 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | /* End PBXFileReference section */ 67 | 68 | /* Begin PBXFrameworksBuildPhase section */ 69 | FCD563B91D756A4E00CB8077 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | FCD563ED1D75708F00CB8077 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | FCD563F11D75708F00CB8077 /* Cocoa.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | /* End PBXFrameworksBuildPhase section */ 85 | 86 | /* Begin PBXGroup section */ 87 | FCD563B31D756A4E00CB8077 = { 88 | isa = PBXGroup; 89 | children = ( 90 | FCD563BE1D756A4E00CB8077 /* WTToolBox */, 91 | FCD563F21D75708F00CB8077 /* CommentStatement */, 92 | FCD563D81D756A6A00CB8077 /* Frameworks */, 93 | FCD563BD1D756A4E00CB8077 /* Products */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | FCD563BD1D756A4E00CB8077 /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | FCD563BC1D756A4E00CB8077 /* WTToolBox.app */, 101 | FCD563F01D75708F00CB8077 /* CommentStatement.appex */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | FCD563BE1D756A4E00CB8077 /* WTToolBox */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | FCD563BF1D756A4E00CB8077 /* AppDelegate.h */, 110 | FCD563C01D756A4E00CB8077 /* AppDelegate.m */, 111 | FCD563C51D756A4E00CB8077 /* ViewController.h */, 112 | FCD563C61D756A4E00CB8077 /* ViewController.m */, 113 | FCD563C81D756A4E00CB8077 /* Assets.xcassets */, 114 | FCD563CA1D756A4E00CB8077 /* Main.storyboard */, 115 | FCD563CD1D756A4E00CB8077 /* Info.plist */, 116 | FCD563C21D756A4E00CB8077 /* Supporting Files */, 117 | ); 118 | path = WTToolBox; 119 | sourceTree = ""; 120 | }; 121 | FCD563C21D756A4E00CB8077 /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | FCD563C31D756A4E00CB8077 /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | FCD563D81D756A6A00CB8077 /* Frameworks */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | FCD563D91D756A6A00CB8077 /* Cocoa.framework */, 133 | ); 134 | name = Frameworks; 135 | sourceTree = ""; 136 | }; 137 | FCD563F21D75708F00CB8077 /* CommentStatement */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | FCD563F51D75708F00CB8077 /* CommentStatementExtension.h */, 141 | FCD563F61D75708F00CB8077 /* CommentStatementExtension.m */, 142 | FCD563F81D75708F00CB8077 /* CommentStatementCommand.h */, 143 | FCD563F91D75708F00CB8077 /* CommentStatementCommand.m */, 144 | 2B988FB51D75D90D00613DC2 /* CodeStatement.h */, 145 | 2B988FB61D75D90D00613DC2 /* CodeStatement.m */, 146 | FCD563FB1D75708F00CB8077 /* Info.plist */, 147 | FCD563F31D75708F00CB8077 /* Supporting Files */, 148 | ); 149 | path = CommentStatement; 150 | sourceTree = ""; 151 | }; 152 | FCD563F31D75708F00CB8077 /* Supporting Files */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | FCD563F41D75708F00CB8077 /* CommentStatement.entitlements */, 156 | ); 157 | name = "Supporting Files"; 158 | sourceTree = ""; 159 | }; 160 | /* End PBXGroup section */ 161 | 162 | /* Begin PBXNativeTarget section */ 163 | FCD563BB1D756A4E00CB8077 /* WTToolBox */ = { 164 | isa = PBXNativeTarget; 165 | buildConfigurationList = FCD563D01D756A4E00CB8077 /* Build configuration list for PBXNativeTarget "WTToolBox" */; 166 | buildPhases = ( 167 | FCD563B81D756A4E00CB8077 /* Sources */, 168 | FCD563B91D756A4E00CB8077 /* Frameworks */, 169 | FCD563BA1D756A4E00CB8077 /* Resources */, 170 | FCD563EB1D756A6A00CB8077 /* Embed App Extensions */, 171 | ); 172 | buildRules = ( 173 | ); 174 | dependencies = ( 175 | FCD563FD1D75708F00CB8077 /* PBXTargetDependency */, 176 | ); 177 | name = WTToolBox; 178 | productName = WTToolBox; 179 | productReference = FCD563BC1D756A4E00CB8077 /* WTToolBox.app */; 180 | productType = "com.apple.product-type.application"; 181 | }; 182 | FCD563EF1D75708F00CB8077 /* CommentStatement */ = { 183 | isa = PBXNativeTarget; 184 | buildConfigurationList = FCD563FF1D75708F00CB8077 /* Build configuration list for PBXNativeTarget "CommentStatement" */; 185 | buildPhases = ( 186 | FCD563EC1D75708F00CB8077 /* Sources */, 187 | FCD563ED1D75708F00CB8077 /* Frameworks */, 188 | FCD563EE1D75708F00CB8077 /* Resources */, 189 | ); 190 | buildRules = ( 191 | ); 192 | dependencies = ( 193 | ); 194 | name = CommentStatement; 195 | productName = CommentStatement; 196 | productReference = FCD563F01D75708F00CB8077 /* CommentStatement.appex */; 197 | productType = "com.apple.product-type.xcode-extension"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | FCD563B41D756A4E00CB8077 /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastUpgradeCheck = 0800; 206 | ORGANIZATIONNAME = wintel; 207 | TargetAttributes = { 208 | FCD563BB1D756A4E00CB8077 = { 209 | CreatedOnToolsVersion = 8.0; 210 | DevelopmentTeam = SM4XKFF6K3; 211 | ProvisioningStyle = Automatic; 212 | }; 213 | FCD563EF1D75708F00CB8077 = { 214 | CreatedOnToolsVersion = 8.0; 215 | DevelopmentTeam = SM4XKFF6K3; 216 | ProvisioningStyle = Automatic; 217 | }; 218 | }; 219 | }; 220 | buildConfigurationList = FCD563B71D756A4E00CB8077 /* Build configuration list for PBXProject "WTToolBox" */; 221 | compatibilityVersion = "Xcode 3.2"; 222 | developmentRegion = English; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | Base, 227 | ); 228 | mainGroup = FCD563B31D756A4E00CB8077; 229 | productRefGroup = FCD563BD1D756A4E00CB8077 /* Products */; 230 | projectDirPath = ""; 231 | projectRoot = ""; 232 | targets = ( 233 | FCD563BB1D756A4E00CB8077 /* WTToolBox */, 234 | FCD563EF1D75708F00CB8077 /* CommentStatement */, 235 | ); 236 | }; 237 | /* End PBXProject section */ 238 | 239 | /* Begin PBXResourcesBuildPhase section */ 240 | FCD563BA1D756A4E00CB8077 /* Resources */ = { 241 | isa = PBXResourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | FCD563C91D756A4E00CB8077 /* Assets.xcassets in Resources */, 245 | FCD563CC1D756A4E00CB8077 /* Main.storyboard in Resources */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | FCD563EE1D75708F00CB8077 /* Resources */ = { 250 | isa = PBXResourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXResourcesBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | FCD563B81D756A4E00CB8077 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | FCD563C71D756A4E00CB8077 /* ViewController.m in Sources */, 264 | FCD563C41D756A4E00CB8077 /* main.m in Sources */, 265 | FCD563C11D756A4E00CB8077 /* AppDelegate.m in Sources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | FCD563EC1D75708F00CB8077 /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | FCD563F71D75708F00CB8077 /* CommentStatementExtension.m in Sources */, 274 | FCD563FA1D75708F00CB8077 /* CommentStatementCommand.m in Sources */, 275 | 2B988FB71D75D90D00613DC2 /* CodeStatement.m in Sources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | /* End PBXSourcesBuildPhase section */ 280 | 281 | /* Begin PBXTargetDependency section */ 282 | FCD563FD1D75708F00CB8077 /* PBXTargetDependency */ = { 283 | isa = PBXTargetDependency; 284 | target = FCD563EF1D75708F00CB8077 /* CommentStatement */; 285 | targetProxy = FCD563FC1D75708F00CB8077 /* PBXContainerItemProxy */; 286 | }; 287 | /* End PBXTargetDependency section */ 288 | 289 | /* Begin PBXVariantGroup section */ 290 | FCD563CA1D756A4E00CB8077 /* Main.storyboard */ = { 291 | isa = PBXVariantGroup; 292 | children = ( 293 | FCD563CB1D756A4E00CB8077 /* Base */, 294 | ); 295 | name = Main.storyboard; 296 | sourceTree = ""; 297 | }; 298 | /* End PBXVariantGroup section */ 299 | 300 | /* Begin XCBuildConfiguration section */ 301 | FCD563CE1D756A4E00CB8077 /* Debug */ = { 302 | isa = XCBuildConfiguration; 303 | buildSettings = { 304 | ALWAYS_SEARCH_USER_PATHS = NO; 305 | CLANG_ANALYZER_NONNULL = YES; 306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 307 | CLANG_CXX_LIBRARY = "libc++"; 308 | CLANG_ENABLE_MODULES = YES; 309 | CLANG_ENABLE_OBJC_ARC = YES; 310 | CLANG_WARN_BOOL_CONVERSION = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 319 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | CODE_SIGN_IDENTITY = "-"; 323 | COPY_PHASE_STRIP = NO; 324 | DEBUG_INFORMATION_FORMAT = dwarf; 325 | ENABLE_STRICT_OBJC_MSGSEND = YES; 326 | ENABLE_TESTABILITY = YES; 327 | GCC_C_LANGUAGE_STANDARD = gnu99; 328 | GCC_DYNAMIC_NO_PIC = NO; 329 | GCC_NO_COMMON_BLOCKS = YES; 330 | GCC_OPTIMIZATION_LEVEL = 0; 331 | GCC_PREPROCESSOR_DEFINITIONS = ( 332 | "DEBUG=1", 333 | "$(inherited)", 334 | ); 335 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 336 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 337 | GCC_WARN_UNDECLARED_SELECTOR = YES; 338 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 339 | GCC_WARN_UNUSED_FUNCTION = YES; 340 | GCC_WARN_UNUSED_VARIABLE = YES; 341 | MACOSX_DEPLOYMENT_TARGET = 10.11; 342 | MTL_ENABLE_DEBUG_INFO = YES; 343 | ONLY_ACTIVE_ARCH = YES; 344 | SDKROOT = macosx; 345 | }; 346 | name = Debug; 347 | }; 348 | FCD563CF1D756A4E00CB8077 /* Release */ = { 349 | isa = XCBuildConfiguration; 350 | buildSettings = { 351 | ALWAYS_SEARCH_USER_PATHS = NO; 352 | CLANG_ANALYZER_NONNULL = YES; 353 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 354 | CLANG_CXX_LIBRARY = "libc++"; 355 | CLANG_ENABLE_MODULES = YES; 356 | CLANG_ENABLE_OBJC_ARC = YES; 357 | CLANG_WARN_BOOL_CONVERSION = YES; 358 | CLANG_WARN_CONSTANT_CONVERSION = YES; 359 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 360 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 361 | CLANG_WARN_EMPTY_BODY = YES; 362 | CLANG_WARN_ENUM_CONVERSION = YES; 363 | CLANG_WARN_INFINITE_RECURSION = YES; 364 | CLANG_WARN_INT_CONVERSION = YES; 365 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 366 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 367 | CLANG_WARN_UNREACHABLE_CODE = YES; 368 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 369 | CODE_SIGN_IDENTITY = "-"; 370 | COPY_PHASE_STRIP = NO; 371 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 372 | ENABLE_NS_ASSERTIONS = NO; 373 | ENABLE_STRICT_OBJC_MSGSEND = YES; 374 | GCC_C_LANGUAGE_STANDARD = gnu99; 375 | GCC_NO_COMMON_BLOCKS = YES; 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | MACOSX_DEPLOYMENT_TARGET = 10.11; 383 | MTL_ENABLE_DEBUG_INFO = NO; 384 | SDKROOT = macosx; 385 | }; 386 | name = Release; 387 | }; 388 | FCD563D11D756A4E00CB8077 /* Debug */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 392 | CODE_SIGN_IDENTITY = "Mac Developer"; 393 | COMBINE_HIDPI_IMAGES = YES; 394 | DEVELOPMENT_TEAM = SM4XKFF6K3; 395 | INFOPLIST_FILE = WTToolBox/Info.plist; 396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 397 | PRODUCT_BUNDLE_IDENTIFIER = com.wintel.WTToolBox; 398 | PRODUCT_NAME = "$(TARGET_NAME)"; 399 | }; 400 | name = Debug; 401 | }; 402 | FCD563D21D756A4E00CB8077 /* Release */ = { 403 | isa = XCBuildConfiguration; 404 | buildSettings = { 405 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 406 | CODE_SIGN_IDENTITY = "Mac Developer"; 407 | COMBINE_HIDPI_IMAGES = YES; 408 | DEVELOPMENT_TEAM = SM4XKFF6K3; 409 | INFOPLIST_FILE = WTToolBox/Info.plist; 410 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 411 | PRODUCT_BUNDLE_IDENTIFIER = com.wintel.WTToolBox; 412 | PRODUCT_NAME = "$(TARGET_NAME)"; 413 | }; 414 | name = Release; 415 | }; 416 | FCD564001D75708F00CB8077 /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | CODE_SIGN_ENTITLEMENTS = CommentStatement/CommentStatement.entitlements; 420 | CODE_SIGN_IDENTITY = "Mac Developer"; 421 | COMBINE_HIDPI_IMAGES = YES; 422 | DEVELOPMENT_TEAM = SM4XKFF6K3; 423 | INFOPLIST_FILE = CommentStatement/Info.plist; 424 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 425 | MACOSX_DEPLOYMENT_TARGET = 10.11; 426 | PRODUCT_BUNDLE_IDENTIFIER = com.wintel.WTToolBox.CommentStatement; 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | SKIP_INSTALL = YES; 429 | }; 430 | name = Debug; 431 | }; 432 | FCD564011D75708F00CB8077 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | CODE_SIGN_ENTITLEMENTS = CommentStatement/CommentStatement.entitlements; 436 | CODE_SIGN_IDENTITY = "Mac Developer"; 437 | COMBINE_HIDPI_IMAGES = YES; 438 | DEVELOPMENT_TEAM = SM4XKFF6K3; 439 | INFOPLIST_FILE = CommentStatement/Info.plist; 440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 441 | MACOSX_DEPLOYMENT_TARGET = 10.11; 442 | PRODUCT_BUNDLE_IDENTIFIER = com.wintel.WTToolBox.CommentStatement; 443 | PRODUCT_NAME = "$(TARGET_NAME)"; 444 | SKIP_INSTALL = YES; 445 | }; 446 | name = Release; 447 | }; 448 | /* End XCBuildConfiguration section */ 449 | 450 | /* Begin XCConfigurationList section */ 451 | FCD563B71D756A4E00CB8077 /* Build configuration list for PBXProject "WTToolBox" */ = { 452 | isa = XCConfigurationList; 453 | buildConfigurations = ( 454 | FCD563CE1D756A4E00CB8077 /* Debug */, 455 | FCD563CF1D756A4E00CB8077 /* Release */, 456 | ); 457 | defaultConfigurationIsVisible = 0; 458 | defaultConfigurationName = Release; 459 | }; 460 | FCD563D01D756A4E00CB8077 /* Build configuration list for PBXNativeTarget "WTToolBox" */ = { 461 | isa = XCConfigurationList; 462 | buildConfigurations = ( 463 | FCD563D11D756A4E00CB8077 /* Debug */, 464 | FCD563D21D756A4E00CB8077 /* Release */, 465 | ); 466 | defaultConfigurationIsVisible = 0; 467 | defaultConfigurationName = Release; 468 | }; 469 | FCD563FF1D75708F00CB8077 /* Build configuration list for PBXNativeTarget "CommentStatement" */ = { 470 | isa = XCConfigurationList; 471 | buildConfigurations = ( 472 | FCD564001D75708F00CB8077 /* Debug */, 473 | FCD564011D75708F00CB8077 /* Release */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = FCD563B41D756A4E00CB8077 /* Project object */; 481 | } 482 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/project.xcworkspace/xcuserdata/suiwentao.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wintelsui-zz/WTxcodeToolBox/41aad0e7ec1cdca904694021ce97b30ef666e9c0/WTToolBox.xcodeproj/project.xcworkspace/xcuserdata/suiwentao.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/project.xcworkspace/xcuserdata/wintel.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wintelsui-zz/WTxcodeToolBox/41aad0e7ec1cdca904694021ce97b30ef666e9c0/WTToolBox.xcodeproj/project.xcworkspace/xcuserdata/wintel.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/suiwentao.xcuserdatad/xcschemes/CommentStatement.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 16 | 22 | 23 | 24 | 30 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 70 | 72 | 78 | 79 | 80 | 81 | 82 | 83 | 90 | 92 | 98 | 99 | 100 | 101 | 103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/suiwentao.xcuserdatad/xcschemes/WTToolBox.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 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/suiwentao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CommentStatement.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | WTToolBox.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | FCD563BB1D756A4E00CB8077 21 | 22 | primary 23 | 24 | 25 | FCD563EF1D75708F00CB8077 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/wintel.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 35 | 36 | 50 | 51 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 72 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/wintel.xcuserdatad/xcschemes/CommentStatement.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 16 | 22 | 23 | 24 | 30 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 70 | 72 | 78 | 79 | 80 | 81 | 82 | 83 | 90 | 92 | 98 | 99 | 100 | 101 | 103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/wintel.xcuserdatad/xcschemes/WTToolBox.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 | -------------------------------------------------------------------------------- /WTToolBox.xcodeproj/xcuserdata/wintel.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CommentStatement.xcscheme 8 | 9 | orderHint 10 | 2 11 | 12 | WTToolBox.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | FCD563BB1D756A4E00CB8077 21 | 22 | primary 23 | 24 | 25 | FCD563D61D756A6A00CB8077 26 | 27 | primary 28 | 29 | 30 | FCD563EF1D75708F00CB8077 31 | 32 | primary 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /WTToolBox/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WTToolBox 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WTToolBox/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WTToolBox 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. 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 | -------------------------------------------------------------------------------- /WTToolBox/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /WTToolBox/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 | Default 509 | 510 | 511 | 512 | 513 | 514 | 515 | Left to Right 516 | 517 | 518 | 519 | 520 | 521 | 522 | Right to Left 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | Default 534 | 535 | 536 | 537 | 538 | 539 | 540 | Left to Right 541 | 542 | 543 | 544 | 545 | 546 | 547 | Right to Left 548 | 549 | 550 | 551 | 552 | 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 | -------------------------------------------------------------------------------- /WTToolBox/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.0.1 21 | CFBundleVersion 22 | 0.20161116.0.1 23 | LSApplicationCategoryType 24 | public.app-category.developer-tools 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2016年 wintelsui. All rights reserved. 29 | NSMainStoryboardFile 30 | Main 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /WTToolBox/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WTToolBox 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WTToolBox/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WTToolBox 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | 16 | // Do any additional setup after loading the view. 17 | 18 | //NSLog(@"结果:\n%@",[self deleteFirstSpace:@" 3"]); 19 | 20 | NSLog(@"结果:\n%@",[self deleteFirstSpace2:@"- (NSDictionary *)handlers ddddd:(NSDictionary *)aaaaa asdasd:(NSIntger) number"]); 21 | 22 | 23 | } 24 | 25 | - (NSString *)deleteFirstSpace2:(NSString *)oldString{ 26 | 27 | return nil; 28 | } 29 | - (NSString *)deleteFirstSpace:(NSString *)oldString{ 30 | if (oldString == nil || oldString.length == 0) { 31 | return @""; 32 | } 33 | NSString *newString = oldString; 34 | while (newString.length > 0) { 35 | if ([newString hasPrefix:@" "]) { 36 | if (newString.length > 1) { 37 | newString = [newString substringFromIndex:1]; 38 | }else{ 39 | newString = @""; 40 | } 41 | }else{ 42 | break; 43 | } 44 | } 45 | return newString; 46 | } 47 | 48 | 49 | - (void)setRepresentedObject:(id)representedObject { 50 | [super setRepresentedObject:representedObject]; 51 | 52 | // Update the view, if already loaded. 53 | } 54 | 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /WTToolBox/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WTToolBox 4 | // 5 | // Created by wintelsui on 16/8/30. 6 | // Copyright © 2016年 wintelsui. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /documentAdd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wintelsui-zz/WTxcodeToolBox/41aad0e7ec1cdca904694021ce97b30ef666e9c0/documentAdd.gif --------------------------------------------------------------------------------