Skip to content

Instantly share code, notes, and snippets.

@michaelschade
Created November 1, 2010 21:07
Show Gist options
  • Save michaelschade/658865 to your computer and use it in GitHub Desktop.
Save michaelschade/658865 to your computer and use it in GitHub Desktop.
The main.m for accentuateus-osx-service as described on http://mschade.me/
/*
Copyright 2010 Spearhead Development, L.L.C. <http://www.sddomain.com/>
[GPLv3 license information redacted for brevity, included at end of post.]
*/
#import "Services.h"
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
Services *service = [[Services alloc] init];
NSRegisterServicesProvider(service, @"AccentuateUsService");
NS_DURING [[NSRunLoop currentRunLoop] run];
NS_HANDLER
NS_ENDHANDLER
[service release];
[pool release];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment