00001
00002
00003
00004
00005
00006
00007
00008
00009 #import "LLDOSender.h"
00010
00011
00012 @implementation LLDOSender
00013
00014 id theProxy = nil;
00015 NSAutoreleasePool *pool;
00016
00017 - (id) init {
00018 self = [super init];
00019 if (self != nil) {
00020
00021
00022
00023 theProxy = [[NSConnection rootProxyForConnectionWithRegisteredName:@"LLDOServer" host:nil] retain];
00024 [theProxy setProtocolForProxy:@protocol(LLDOProxy)];
00025 }
00026 return self;
00027 }
00028
00029 - (void) invokeRemoteObjectWithUserData:(id)data {
00030
00031 if (theProxy != nil) {
00032
00033 [theProxy invokeWithUserData:data];
00034 } else {
00035 NSLog(@"LLDOSender.invokeRemoteObjectWithUserData called without proxy object");
00036 }
00037 }
00038
00039 - (void) destroy {
00040
00041 [pool release];
00042
00043
00044 }
00045
00046 @end