Skip to content

Instantly share code, notes, and snippets.

@michaelschade
Created November 1, 2010 21:08
Show Gist options
  • Save michaelschade/658867 to your computer and use it in GitHub Desktop.
Save michaelschade/658867 to your computer and use it in GitHub Desktop.
The main.m for accentuateus-osx-service as described on http://mschade.me/
#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