home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2J (Developer)
/
os42jdev.iso
/
NextDeveloper
/
Examples
/
AppKit
/
SimpleService
/
SimpleService_main.m
< prev
next >
Wrap
Text File
|
1997-01-12
|
600b
|
22 lines
#import <Foundation/Foundation.h>
#import "ServiceTest.h"
int main (int argc, const char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
ServiceTest *serviceProvider = [[ServiceTest alloc] init];
NSRegisterServicesProvider(serviceProvider, @"SimpleService");
NS_DURING
[[NSRunLoop currentRunLoop] run];
NS_HANDLER
NSLog(@"%@", localException);
NS_ENDHANDLER
[serviceProvider release];
[pool release];
exit(0); // insure the process exit status is 0
return 0; // ...and make main fit the ANSI spec.
}