mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add a GitX:// protocol handler
This allows to read in arbitrary blobs from the repository. For more information, see the CallingFromWebKit.txt document in the Documentation/ directory.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#import "PBRepositoryDocumentController.h"
|
||||
#import "PBCLIProxy.h"
|
||||
#import "PBServicesController.h"
|
||||
#import "PBGitXProtocol.h"
|
||||
|
||||
@implementation ApplicationController
|
||||
@synthesize cliProxy;
|
||||
@@ -34,6 +35,9 @@
|
||||
|
||||
- (void)registerServices
|
||||
{
|
||||
// Register URL
|
||||
[NSURLProtocol registerClass:[PBGitXProtocol class]];
|
||||
|
||||
// Register the service class
|
||||
PBServicesController *services = [[PBServicesController alloc] init];
|
||||
[NSApp setServicesProvider:services];
|
||||
|
||||
Reference in New Issue
Block a user