/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Luky/Comm/LLDOSender.m

00001 //
00002 //  LLDOSender.m
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 27/04/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
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         // $$ might need my own pool in this thread
00021         //pool = [[NSAutoreleasePool alloc] init];
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                 //NSLog(@"LLDOSender.invokeRemoteObjectWithUserData called");
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     // $$ hmm how to ensure this is called?
00043         //[super destroy];
00044 }
00045 
00046 @end

Generated on Fri Jul 28 19:15:22 2006 for MacTrek by  doxygen 1.4.7