├── .gitignore ├── Classes ├── App.h ├── App.m ├── NSURL+L0URLParsing.h └── NSURL+L0URLParsing.m ├── English.lproj ├── InfoPlist.strings └── MainMenu.xib ├── Info.plist ├── README.md ├── main.m ├── subl-handler.xcodeproj └── project.pbxproj └── version.plist /.gitignore: -------------------------------------------------------------------------------- 1 | build/* 2 | *.xcodeproj/*.pbxuser 3 | *.xcodeproj/*.perspectivev3 4 | *.xcodeproj/TemplateIcon.icns 5 | subl-handler.xcodeproj/project.xcworkspace/ 6 | subl-handler.xcodeproj/xcuserdata/ 7 | -------------------------------------------------------------------------------- /Classes/App.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface App : NSObject { 4 | NSString *path; 5 | 6 | IBOutlet NSWindow *prefPanel; 7 | IBOutlet NSTextField *textField; 8 | } 9 | 10 | -(IBAction)showPrefPanel:(id)sender; 11 | -(IBAction)applyChange:(id)sender; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Classes/App.m: -------------------------------------------------------------------------------- 1 | #import "App.h" 2 | 3 | #import "NSURL+L0URLParsing.h" 4 | 5 | @implementation App 6 | 7 | NSString *defaultPath = @"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"; 8 | 9 | -(void)awakeFromNib { 10 | NSUserDefaults *d = [NSUserDefaults standardUserDefaults]; 11 | path = [d objectForKey:@"path"]; 12 | 13 | NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager]; 14 | [appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; 15 | } 16 | 17 | -(void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent { 18 | if (nil == path) path = defaultPath; 19 | 20 | // txmt://open/?url=file://~/.bash_profile&line=11&column=2 21 | NSURL *url = [NSURL URLWithString:[[event paramDescriptorForKeyword:keyDirectObject] stringValue]]; 22 | 23 | if (url && [[url host] isEqualToString:@"open"]) { 24 | NSDictionary *params = [url dictionaryByDecodingQueryString]; 25 | NSString* url = [params objectForKey:@"url"]; 26 | if (url) { 27 | NSString *file = [url stringByReplacingOccurrencesOfString:@"file://" withString: @""]; 28 | NSString *line = [params objectForKey:@"line"]; 29 | NSString *arg = nil; 30 | if (line) { 31 | arg = [NSString stringWithFormat:@"%@:%@", file, line]; 32 | } else { 33 | arg = [NSString stringWithFormat:@"%@", file]; 34 | } 35 | 36 | NSTask *task = [[NSTask alloc] init]; 37 | [task setLaunchPath:path]; 38 | [task setArguments:[NSArray arrayWithObjects:arg, nil]]; 39 | [task launch]; 40 | [task release]; 41 | NSWorkspace *sharedWorkspace = [NSWorkspace sharedWorkspace]; 42 | NSString *appPath = [sharedWorkspace fullPathForApplication:@"Sublime Text 2"]; 43 | NSString *identifier = [[NSBundle bundleWithPath:appPath] bundleIdentifier]; 44 | NSArray *selectedApps = 45 | [NSRunningApplication runningApplicationsWithBundleIdentifier:identifier]; 46 | NSRunningApplication *runningApplcation = (NSRunningApplication*)[selectedApps objectAtIndex:0]; 47 | [runningApplcation activateWithOptions: NSApplicationActivateAllWindows]; 48 | [runningApplcation setCollectionBehavior: NSWindowCollectionBehaviorMoveToActiveSpace]; 49 | } 50 | } 51 | 52 | // if (![prefPanel isVisible]) { 53 | // [NSApp terminate:self]; 54 | // } 55 | } 56 | 57 | -(IBAction)showPrefPanel:(id)sender { 58 | if (path) { 59 | [textField setStringValue:path]; 60 | } else { 61 | [textField setStringValue:defaultPath]; 62 | } 63 | [prefPanel makeKeyAndOrderFront:nil]; 64 | } 65 | 66 | -(IBAction)applyChange:(id)sender { 67 | path = [textField stringValue]; 68 | 69 | if (path) { 70 | NSUserDefaults *d = [NSUserDefaults standardUserDefaults]; 71 | [d setObject:path forKey:@"path"]; 72 | } 73 | 74 | [prefPanel orderOut:nil]; 75 | } 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /Classes/NSURL+L0URLParsing.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL_L0URLParsing.h 3 | // Diceshaker 4 | // 5 | // Created by ∞ on 11/02/09. 6 | // Copyright 2009 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSURL (L0URLParsing) 13 | 14 | - (NSDictionary*) dictionaryByDecodingQueryString; 15 | 16 | @end 17 | 18 | @interface NSDictionary (L0URLParsing) 19 | 20 | - (NSString*) queryString; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Classes/NSURL+L0URLParsing.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL_L0URLParsing.m 3 | // Diceshaker 4 | // 5 | // Created by ∞ on 11/02/09. 6 | // Copyright 2009 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "NSURL+L0URLParsing.h" 10 | 11 | 12 | @implementation NSURL (L0URLParsing) 13 | 14 | - (NSDictionary*) dictionaryByDecodingQueryString; 15 | { 16 | NSString* query = [self query]; 17 | if (!query) { 18 | NSString* resSpecifier = [self resourceSpecifier]; 19 | NSRange r = [resSpecifier rangeOfString:@"?"]; 20 | 21 | if (r.location == NSNotFound || r.location == [resSpecifier length] - 1) 22 | return [NSDictionary dictionary]; 23 | else 24 | query = [resSpecifier substringFromIndex:r.location + 1]; 25 | } 26 | 27 | NSArray* keyValuePairs = [query componentsSeparatedByString:@"&"]; 28 | 29 | NSMutableDictionary* dict = [NSMutableDictionary dictionary]; 30 | for (NSString* pair in keyValuePairs) { 31 | NSArray* splitPair = [pair componentsSeparatedByString:@"="]; 32 | NSAssert([splitPair count] > 0, @"At least one element out of componentsSeparatedByString:"); 33 | NSString* key = [splitPair objectAtIndex:0]; 34 | 35 | NSString* value; 36 | if ([splitPair count] > 2) { 37 | NSMutableArray* splitPairWithoutKey = [NSMutableArray arrayWithArray:splitPair]; 38 | [splitPairWithoutKey removeObjectAtIndex:0]; 39 | value = [splitPairWithoutKey componentsJoinedByString:@"="]; 40 | } else if ([splitPair count] == 2) 41 | value = [splitPair objectAtIndex:1]; 42 | else 43 | value = nil; 44 | 45 | if (value) 46 | [dict setObject:[value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] forKey:[key stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 47 | else 48 | [dict setObject:[NSNull null] forKey:[key stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 49 | 50 | } 51 | 52 | return dict; 53 | } 54 | 55 | @end 56 | 57 | @implementation NSDictionary (L0URLParsing) 58 | 59 | - (NSString*) queryString; 60 | { 61 | NSMutableString* queryString = [NSMutableString string]; 62 | 63 | BOOL first = YES; 64 | for (NSString* key in self) { 65 | if (!first) 66 | [queryString appendString:@"&"]; 67 | [queryString appendString:[key stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 68 | 69 | id value = [self objectForKey:key]; 70 | if (![value isEqual:[NSNull null]]) { 71 | [queryString appendString:@"="]; 72 | [queryString appendString:[value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 73 | } 74 | 75 | first = NO; 76 | } 77 | 78 | return queryString; 79 | } 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asuth/subl-handler/0a26dd75b08c30a3bc0db91962c8c6b41447fb91/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /English.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1050 5 | 11B26 6 | 1617 7 | 1138 8 | 566.00 9 | 10 | com.apple.InterfaceBuilder.CocoaPlugin 11 | 1617 12 | 13 | 14 | YES 15 | NSTextField 16 | NSView 17 | NSWindowTemplate 18 | NSMenu 19 | NSMenuItem 20 | NSTextFieldCell 21 | NSButtonCell 22 | NSButton 23 | NSCustomObject 24 | 25 | 26 | YES 27 | com.apple.InterfaceBuilder.CocoaPlugin 28 | 29 | 30 | YES 31 | 32 | YES 33 | 34 | 35 | 36 | 37 | YES 38 | 39 | NSApplication 40 | 41 | 42 | FirstResponder 43 | 44 | 45 | NSApplication 46 | 47 | 48 | AMainMenu 49 | 50 | YES 51 | 52 | 53 | EmacsHandler 54 | 55 | 1048576 56 | 2147483647 57 | 58 | NSImage 59 | NSMenuCheckmark 60 | 61 | 62 | NSImage 63 | NSMenuMixedState 64 | 65 | submenuAction: 66 | 67 | hoge 68 | 69 | YES 70 | 71 | 72 | About SublHandler 73 | 74 | 2147483647 75 | 76 | 77 | 78 | 79 | 80 | YES 81 | YES 82 | 83 | 84 | 1048576 85 | 2147483647 86 | 87 | 88 | 89 | 90 | 91 | Preferences… 92 | , 93 | 1048576 94 | 2147483647 95 | 96 | 97 | 98 | 99 | 100 | YES 101 | YES 102 | 103 | 104 | 1048576 105 | 2147483647 106 | 107 | 108 | 109 | 110 | 111 | Services 112 | 113 | 1048576 114 | 2147483647 115 | 116 | 117 | submenuAction: 118 | 119 | Services 120 | 121 | YES 122 | 123 | _NSServicesMenu 124 | 125 | 126 | 127 | 128 | YES 129 | YES 130 | 131 | 132 | 1048576 133 | 2147483647 134 | 135 | 136 | 137 | 138 | 139 | Hide SublHandler 140 | h 141 | 1048576 142 | 2147483647 143 | 144 | 145 | 146 | 147 | 148 | Hide Others 149 | h 150 | 1572864 151 | 2147483647 152 | 153 | 154 | 155 | 156 | 157 | Show All 158 | 159 | 1048576 160 | 2147483647 161 | 162 | 163 | 164 | 165 | 166 | YES 167 | YES 168 | 169 | 170 | 1048576 171 | 2147483647 172 | 173 | 174 | 175 | 176 | 177 | Quit 178 | q 179 | 1048576 180 | 2147483647 181 | 182 | 183 | 184 | 185 | _NSAppleMenu 186 | 187 | 188 | 189 | 190 | Help 191 | 192 | 1048576 193 | 2147483647 194 | 195 | 196 | submenuAction: 197 | 198 | Help 199 | 200 | YES 201 | 202 | 203 | SublHandler Help 204 | ? 205 | 1048576 206 | 2147483647 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | _NSMainMenu 215 | 216 | 217 | 15 218 | 2 219 | {{335, 520}, {571, 90}} 220 | 1946157056 221 | Preferences 222 | NSWindow 223 | 224 | 225 | 226 | 227 | 256 228 | 229 | YES 230 | 231 | 232 | 268 233 | {{17, 53}, {91, 17}} 234 | 235 | 236 | YES 237 | 238 | 68288064 239 | 272630784 240 | Path to subl: 241 | 242 | LucidaGrande 243 | 13 244 | 1044 245 | 246 | 247 | 248 | 6 249 | System 250 | controlColor 251 | 252 | 3 253 | MC42NjY2NjY2NjY3AA 254 | 255 | 256 | 257 | 6 258 | System 259 | controlTextColor 260 | 261 | 3 262 | MAA 263 | 264 | 265 | 266 | 267 | 268 | 269 | 268 270 | {{105, 48}, {446, 22}} 271 | 272 | 273 | YES 274 | 275 | -1804468671 276 | 272630784 277 | 278 | 279 | 280 | YES 281 | 282 | 6 283 | System 284 | textBackgroundColor 285 | 286 | 3 287 | MQA 288 | 289 | 290 | 291 | 6 292 | System 293 | textColor 294 | 295 | 296 | 297 | 298 | 299 | 300 | 268 301 | {{461, 12}, {96, 32}} 302 | 303 | 304 | YES 305 | 306 | -2080244224 307 | 134217728 308 | Apply 309 | 310 | 311 | -2038284033 312 | 129 313 | 314 | 315 | 200 316 | 25 317 | 318 | 319 | 320 | {571, 90} 321 | 322 | 323 | 324 | {{0, 0}, {1920, 1178}} 325 | {10000000000000, 10000000000000} 326 | YES 327 | 328 | 329 | NSFontManager 330 | 331 | 332 | App 333 | 334 | 335 | 336 | 337 | YES 338 | 339 | 340 | orderFrontStandardAboutPanel: 341 | 342 | 343 | 344 | 142 345 | 346 | 347 | 348 | showHelp: 349 | 350 | 351 | 352 | 360 353 | 354 | 355 | 356 | hide: 357 | 358 | 359 | 360 | 367 361 | 362 | 363 | 364 | hideOtherApplications: 365 | 366 | 367 | 368 | 368 369 | 370 | 371 | 372 | unhideAllApplications: 373 | 374 | 375 | 376 | 370 377 | 378 | 379 | 380 | terminate: 381 | 382 | 383 | 384 | 449 385 | 386 | 387 | 388 | delegate 389 | 390 | 391 | 392 | 452 393 | 394 | 395 | 396 | showPrefPanel: 397 | 398 | 399 | 400 | 478 401 | 402 | 403 | 404 | prefPanel 405 | 406 | 407 | 408 | 479 409 | 410 | 411 | 412 | textField 413 | 414 | 415 | 416 | 480 417 | 418 | 419 | 420 | applyChange: 421 | 422 | 423 | 424 | 481 425 | 426 | 427 | 428 | 429 | YES 430 | 431 | 0 432 | 433 | 434 | 435 | 436 | 437 | -2 438 | 439 | 440 | File's Owner 441 | 442 | 443 | -1 444 | 445 | 446 | First Responder 447 | 448 | 449 | -3 450 | 451 | 452 | Application 453 | 454 | 455 | 29 456 | 457 | 458 | YES 459 | 460 | 461 | 462 | 463 | MainMenu 464 | 465 | 466 | 56 467 | 468 | 469 | YES 470 | 471 | 472 | 473 | 474 | 475 | 103 476 | 477 | 478 | YES 479 | 480 | 481 | 482 | 1 483 | 484 | 485 | 106 486 | 487 | 488 | YES 489 | 490 | 491 | 492 | 2 493 | 494 | 495 | 111 496 | 497 | 498 | 499 | 500 | 57 501 | 502 | 503 | YES 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 58 520 | 521 | 522 | 523 | 524 | 134 525 | 526 | 527 | 528 | 529 | 150 530 | 531 | 532 | 533 | 534 | 136 535 | 536 | 537 | 1111 538 | 539 | 540 | 144 541 | 542 | 543 | 544 | 545 | 129 546 | 547 | 548 | 121 549 | 550 | 551 | 143 552 | 553 | 554 | 555 | 556 | 236 557 | 558 | 559 | 560 | 561 | 131 562 | 563 | 564 | YES 565 | 566 | 567 | 568 | 569 | 570 | 149 571 | 572 | 573 | 574 | 575 | 145 576 | 577 | 578 | 579 | 580 | 130 581 | 582 | 583 | 584 | 585 | 371 586 | 587 | 588 | YES 589 | 590 | 591 | 592 | 593 | 594 | 372 595 | 596 | 597 | YES 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 420 606 | 607 | 608 | 609 | 610 | 451 611 | 612 | 613 | 614 | 615 | 457 616 | 617 | 618 | YES 619 | 620 | 621 | 622 | 623 | 624 | 458 625 | 626 | 627 | 628 | 629 | 459 630 | 631 | 632 | YES 633 | 634 | 635 | 636 | 637 | 638 | 460 639 | 640 | 641 | 642 | 643 | 461 644 | 645 | 646 | YES 647 | 648 | 649 | 650 | 651 | 652 | 462 653 | 654 | 655 | 656 | 657 | 658 | 659 | YES 660 | 661 | YES 662 | -1.IBPluginDependency 663 | -2.IBPluginDependency 664 | -3.IBPluginDependency 665 | 103.IBPluginDependency 666 | 106.IBPluginDependency 667 | 111.IBPluginDependency 668 | 129.IBPluginDependency 669 | 130.IBPluginDependency 670 | 131.IBPluginDependency 671 | 134.IBPluginDependency 672 | 136.IBPluginDependency 673 | 143.IBPluginDependency 674 | 144.IBPluginDependency 675 | 145.IBPluginDependency 676 | 149.IBPluginDependency 677 | 150.IBPluginDependency 678 | 236.IBPluginDependency 679 | 29.IBPluginDependency 680 | 371.IBPluginDependency 681 | 371.IBWindowTemplateEditedContentRect 682 | 371.NSWindowTemplate.visibleAtLaunch 683 | 372.IBPluginDependency 684 | 420.IBPluginDependency 685 | 451.IBPluginDependency 686 | 457.IBPluginDependency 687 | 458.IBPluginDependency 688 | 459.IBPluginDependency 689 | 460.IBPluginDependency 690 | 461.IBPluginDependency 691 | 462.IBPluginDependency 692 | 56.IBPluginDependency 693 | 57.IBPluginDependency 694 | 58.IBPluginDependency 695 | 696 | 697 | YES 698 | com.apple.InterfaceBuilder.CocoaPlugin 699 | com.apple.InterfaceBuilder.CocoaPlugin 700 | com.apple.InterfaceBuilder.CocoaPlugin 701 | com.apple.InterfaceBuilder.CocoaPlugin 702 | com.apple.InterfaceBuilder.CocoaPlugin 703 | com.apple.InterfaceBuilder.CocoaPlugin 704 | com.apple.InterfaceBuilder.CocoaPlugin 705 | com.apple.InterfaceBuilder.CocoaPlugin 706 | com.apple.InterfaceBuilder.CocoaPlugin 707 | com.apple.InterfaceBuilder.CocoaPlugin 708 | com.apple.InterfaceBuilder.CocoaPlugin 709 | com.apple.InterfaceBuilder.CocoaPlugin 710 | com.apple.InterfaceBuilder.CocoaPlugin 711 | com.apple.InterfaceBuilder.CocoaPlugin 712 | com.apple.InterfaceBuilder.CocoaPlugin 713 | com.apple.InterfaceBuilder.CocoaPlugin 714 | com.apple.InterfaceBuilder.CocoaPlugin 715 | com.apple.InterfaceBuilder.CocoaPlugin 716 | com.apple.InterfaceBuilder.CocoaPlugin 717 | {{107, 467}, {480, 230}} 718 | 719 | com.apple.InterfaceBuilder.CocoaPlugin 720 | com.apple.InterfaceBuilder.CocoaPlugin 721 | com.apple.InterfaceBuilder.CocoaPlugin 722 | com.apple.InterfaceBuilder.CocoaPlugin 723 | com.apple.InterfaceBuilder.CocoaPlugin 724 | com.apple.InterfaceBuilder.CocoaPlugin 725 | com.apple.InterfaceBuilder.CocoaPlugin 726 | com.apple.InterfaceBuilder.CocoaPlugin 727 | com.apple.InterfaceBuilder.CocoaPlugin 728 | com.apple.InterfaceBuilder.CocoaPlugin 729 | com.apple.InterfaceBuilder.CocoaPlugin 730 | com.apple.InterfaceBuilder.CocoaPlugin 731 | 732 | 733 | 734 | YES 735 | 736 | 737 | 738 | 739 | 740 | YES 741 | 742 | 743 | 744 | 745 | 481 746 | 747 | 748 | 0 749 | IBCocoaFramework 750 | 751 | com.apple.InterfaceBuilder.CocoaPlugin.macosx 752 | 753 | 754 | 755 | com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 756 | 757 | 758 | YES 759 | 3 760 | 761 | YES 762 | 763 | YES 764 | NSMenuCheckmark 765 | NSMenuMixedState 766 | 767 | 768 | YES 769 | {9, 8} 770 | {7, 2} 771 | 772 | 773 | 774 | 775 | -------------------------------------------------------------------------------- /Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.asuth.sublhandler 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleURLTypes 22 | 23 | 24 | CFBundleURLName 25 | org.unknownplace.sublhandler 26 | CFBundleURLSchemes 27 | 28 | subl 29 | 30 | 31 | 32 | CFBundleVersion 33 | 1.1 34 | NSMainNibFile 35 | MainMenu 36 | NSPrincipalClass 37 | NSApplication 38 | 39 | 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | SublimeText 2 URLHandler on OS X 2 | ======================= 3 | This application enables SublimeText 2 to open `subl:` urls, as Textmate has as described [here](http://manual.macromates.com/en/using_textmate_from_terminal#url_scheme_html) 4 | 5 | subl://open/?url=file:///etc/passwd&line=10&column=2 6 | 7 | Installation 8 | ------------ 9 | Download [latest release](http://asuth.com/SublHandler.app.zip). 10 | 11 | Unzip it, then launch it. Select `SublHandler` -> `Preferences...`, then set the path for the subl binary. 12 | 13 | *Mountain Lion Users*: Because it's an unsigned binary, you'll need to right-click the app and select "Open"...You only need to run it once for the URL handler to register. 14 | 15 | Test it 16 | ------- 17 | Open terminal and type: 18 | open 'subl://open/?url=file:///etc/hosts' 19 | 20 | 21 | Uninstalling 22 | ------------ 23 | Delete following: 24 | 25 | /Applications/SublHandler.app 26 | ~/Library/Preferences/com.asuth.sublhandler.plist 27 | 28 | Author 29 | ------ 30 | 31 | * Daisuke Murase :@typester (github, twitter, CPAN, etc..) 32 | * Scott Wadden (SublimeText 2 port) 33 | * Andrew Sutherland (Mountain Lion fixes) 34 | 35 | License 36 | ------- 37 | 38 | BSD. 39 | 40 | -------------------------------------------------------------------------------- /main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | return NSApplicationMain(argc, (const char **) argv); 6 | } 7 | -------------------------------------------------------------------------------- /subl-handler.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58140DA1D0A300B32029 /* MainMenu.xib */; }; 11 | 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 12 | 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; 13 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; 14 | A07878C2109C002C004947EC /* App.m in Sources */ = {isa = PBXBuildFile; fileRef = A07878BF109C002C004947EC /* App.m */; }; 15 | A07878C3109C002C004947EC /* NSURL+L0URLParsing.m in Sources */ = {isa = PBXBuildFile; fileRef = A07878C1109C002C004947EC /* NSURL+L0URLParsing.m */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 20 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 21 | 1DDD58150DA1D0A300B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; 22 | 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 23 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 24 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 25 | 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 8D1107320486CEB800E47090 /* SublHandler.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SublHandler.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | A07878BE109C002C004947EC /* App.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = App.h; path = Classes/App.h; sourceTree = ""; }; 28 | A07878BF109C002C004947EC /* App.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = App.m; path = Classes/App.m; sourceTree = ""; }; 29 | A07878C0109C002C004947EC /* NSURL+L0URLParsing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSURL+L0URLParsing.h"; path = "Classes/NSURL+L0URLParsing.h"; sourceTree = ""; }; 30 | A07878C1109C002C004947EC /* NSURL+L0URLParsing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSURL+L0URLParsing.m"; path = "Classes/NSURL+L0URLParsing.m"; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 8D11072E0486CEB800E47090 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */, 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 080E96DDFE201D6D7F000001 /* Classes */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | A07878BE109C002C004947EC /* App.h */, 49 | A07878BF109C002C004947EC /* App.m */, 50 | A07878C0109C002C004947EC /* NSURL+L0URLParsing.h */, 51 | A07878C1109C002C004947EC /* NSURL+L0URLParsing.m */, 52 | ); 53 | name = Classes; 54 | sourceTree = ""; 55 | }; 56 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, 60 | ); 61 | name = "Linked Frameworks"; 62 | sourceTree = ""; 63 | }; 64 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */, 68 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */, 69 | ); 70 | name = "Other Frameworks"; 71 | sourceTree = ""; 72 | }; 73 | 19C28FACFE9D520D11CA2CBB /* Products */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 8D1107320486CEB800E47090 /* SublHandler.app */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 29B97314FDCFA39411CA2CEA /* emacs-handler */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 080E96DDFE201D6D7F000001 /* Classes */, 85 | 29B97315FDCFA39411CA2CEA /* Other Sources */, 86 | 29B97317FDCFA39411CA2CEA /* Resources */, 87 | 29B97323FDCFA39411CA2CEA /* Frameworks */, 88 | 19C28FACFE9D520D11CA2CBB /* Products */, 89 | ); 90 | name = "emacs-handler"; 91 | sourceTree = ""; 92 | }; 93 | 29B97315FDCFA39411CA2CEA /* Other Sources */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 29B97316FDCFA39411CA2CEA /* main.m */, 97 | ); 98 | name = "Other Sources"; 99 | sourceTree = ""; 100 | }; 101 | 29B97317FDCFA39411CA2CEA /* Resources */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 8D1107310486CEB800E47090 /* Info.plist */, 105 | 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, 106 | 1DDD58140DA1D0A300B32029 /* MainMenu.xib */, 107 | ); 108 | name = Resources; 109 | sourceTree = ""; 110 | }; 111 | 29B97323FDCFA39411CA2CEA /* Frameworks */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */, 115 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */, 116 | ); 117 | name = Frameworks; 118 | sourceTree = ""; 119 | }; 120 | /* End PBXGroup section */ 121 | 122 | /* Begin PBXNativeTarget section */ 123 | 8D1107260486CEB800E47090 /* SublHandler */ = { 124 | isa = PBXNativeTarget; 125 | buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "SublHandler" */; 126 | buildPhases = ( 127 | 8D1107290486CEB800E47090 /* Resources */, 128 | 8D11072C0486CEB800E47090 /* Sources */, 129 | 8D11072E0486CEB800E47090 /* Frameworks */, 130 | ); 131 | buildRules = ( 132 | ); 133 | dependencies = ( 134 | ); 135 | name = SublHandler; 136 | productInstallPath = "$(HOME)/Applications"; 137 | productName = "emacs-handler"; 138 | productReference = 8D1107320486CEB800E47090 /* SublHandler.app */; 139 | productType = "com.apple.product-type.application"; 140 | }; 141 | /* End PBXNativeTarget section */ 142 | 143 | /* Begin PBXProject section */ 144 | 29B97313FDCFA39411CA2CEA /* Project object */ = { 145 | isa = PBXProject; 146 | attributes = { 147 | LastUpgradeCheck = 0460; 148 | }; 149 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "subl-handler" */; 150 | compatibilityVersion = "Xcode 3.2"; 151 | developmentRegion = English; 152 | hasScannedForEncodings = 1; 153 | knownRegions = ( 154 | en, 155 | ); 156 | mainGroup = 29B97314FDCFA39411CA2CEA /* emacs-handler */; 157 | projectDirPath = ""; 158 | projectRoot = ""; 159 | targets = ( 160 | 8D1107260486CEB800E47090 /* SublHandler */, 161 | ); 162 | }; 163 | /* End PBXProject section */ 164 | 165 | /* Begin PBXResourcesBuildPhase section */ 166 | 8D1107290486CEB800E47090 /* Resources */ = { 167 | isa = PBXResourcesBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */, 171 | 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXResourcesBuildPhase section */ 176 | 177 | /* Begin PBXSourcesBuildPhase section */ 178 | 8D11072C0486CEB800E47090 /* Sources */ = { 179 | isa = PBXSourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 8D11072D0486CEB800E47090 /* main.m in Sources */, 183 | A07878C2109C002C004947EC /* App.m in Sources */, 184 | A07878C3109C002C004947EC /* NSURL+L0URLParsing.m in Sources */, 185 | ); 186 | runOnlyForDeploymentPostprocessing = 0; 187 | }; 188 | /* End PBXSourcesBuildPhase section */ 189 | 190 | /* Begin PBXVariantGroup section */ 191 | 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = { 192 | isa = PBXVariantGroup; 193 | children = ( 194 | 089C165DFE840E0CC02AAC07 /* English */, 195 | ); 196 | name = InfoPlist.strings; 197 | sourceTree = ""; 198 | }; 199 | 1DDD58140DA1D0A300B32029 /* MainMenu.xib */ = { 200 | isa = PBXVariantGroup; 201 | children = ( 202 | 1DDD58150DA1D0A300B32029 /* English */, 203 | ); 204 | name = MainMenu.xib; 205 | sourceTree = ""; 206 | }; 207 | /* End PBXVariantGroup section */ 208 | 209 | /* Begin XCBuildConfiguration section */ 210 | C01FCF4B08A954540054247B /* Debug */ = { 211 | isa = XCBuildConfiguration; 212 | buildSettings = { 213 | ALWAYS_SEARCH_USER_PATHS = NO; 214 | COMBINE_HIDPI_IMAGES = YES; 215 | COPY_PHASE_STRIP = NO; 216 | GCC_DYNAMIC_NO_PIC = NO; 217 | GCC_MODEL_TUNING = G5; 218 | GCC_OPTIMIZATION_LEVEL = 0; 219 | GCC_PRECOMPILE_PREFIX_HEADER = NO; 220 | INFOPLIST_FILE = Info.plist; 221 | INSTALL_PATH = "$(HOME)/Applications"; 222 | PRODUCT_NAME = SublHandler; 223 | SDKROOT = macosx; 224 | }; 225 | name = Debug; 226 | }; 227 | C01FCF4C08A954540054247B /* Release */ = { 228 | isa = XCBuildConfiguration; 229 | buildSettings = { 230 | ALWAYS_SEARCH_USER_PATHS = NO; 231 | COMBINE_HIDPI_IMAGES = YES; 232 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 233 | GCC_MODEL_TUNING = G5; 234 | GCC_PRECOMPILE_PREFIX_HEADER = NO; 235 | INFOPLIST_FILE = Info.plist; 236 | INSTALL_PATH = "$(HOME)/Applications"; 237 | PRODUCT_NAME = SublHandler; 238 | SDKROOT = macosx; 239 | }; 240 | name = Release; 241 | }; 242 | C01FCF4F08A954540054247B /* Debug */ = { 243 | isa = XCBuildConfiguration; 244 | buildSettings = { 245 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 246 | GCC_C_LANGUAGE_STANDARD = c99; 247 | GCC_OPTIMIZATION_LEVEL = 0; 248 | GCC_VERSION = ""; 249 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 250 | GCC_WARN_UNUSED_VARIABLE = YES; 251 | ONLY_ACTIVE_ARCH = YES; 252 | SDKROOT = macosx; 253 | }; 254 | name = Debug; 255 | }; 256 | C01FCF5008A954540054247B /* Release */ = { 257 | isa = XCBuildConfiguration; 258 | buildSettings = { 259 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 260 | GCC_C_LANGUAGE_STANDARD = c99; 261 | GCC_VERSION = ""; 262 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 263 | GCC_WARN_UNUSED_VARIABLE = YES; 264 | SDKROOT = macosx; 265 | }; 266 | name = Release; 267 | }; 268 | /* End XCBuildConfiguration section */ 269 | 270 | /* Begin XCConfigurationList section */ 271 | C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "SublHandler" */ = { 272 | isa = XCConfigurationList; 273 | buildConfigurations = ( 274 | C01FCF4B08A954540054247B /* Debug */, 275 | C01FCF4C08A954540054247B /* Release */, 276 | ); 277 | defaultConfigurationIsVisible = 0; 278 | defaultConfigurationName = Release; 279 | }; 280 | C01FCF4E08A954540054247B /* Build configuration list for PBXProject "subl-handler" */ = { 281 | isa = XCConfigurationList; 282 | buildConfigurations = ( 283 | C01FCF4F08A954540054247B /* Debug */, 284 | C01FCF5008A954540054247B /* Release */, 285 | ); 286 | defaultConfigurationIsVisible = 0; 287 | defaultConfigurationName = Release; 288 | }; 289 | /* End XCConfigurationList section */ 290 | }; 291 | rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; 292 | } 293 | -------------------------------------------------------------------------------- /version.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildVersion 6 | 3 7 | CFBundleVersion 8 | 1.0 9 | ProductBuildVersion 10 | 9M2729 11 | ProjectName 12 | DevToolsWizardTemplates 13 | SourceVersion 14 | 11600000 15 | 16 | 17 | --------------------------------------------------------------------------------