title: Communication between process using Distributed Object
body: <p>I can't manage to vend proxy object, it just stuck on client side when try to get connection</p>
  
  <pre><code>NSConnection *conn = [NSConnection connectionWithRegisteredName:@"server"  host:nil];
  </code></pre>
  
  <p>Here is how I register connection and vend object</p>
  
  <pre><code>//server
  -(void)initServer {
  
  NSConnection * connection = [[NSConnection alloc]init];
  
  MZRemoteObject * obj = [[MZRemoteObject alloc]init];
  obj.message = @"hello world";
  [connection setRootObject:obj];
  if([connection registerName:@"server"]== NO){
      NSLog(@"error Register Server");
  }
  NSLog(@"Registered Server");
  }
  </code></pre>
  
  <p>Client side(getting vended object)</p>
  
  <pre><code>- (void)recieveMessage {
  
  NSDistantObject *proxy;
  NSConnection *conn = [NSConnection connectionWithRegisteredName:@"server"  host:nil];
  
  if (!conn) {
      NSLog(@"conn recieve message error");
  }
  
  proxy = [conn rootProxy];
  MZRemoteObject * obj =(MZRemoteObject*)proxy;
  
  if (!proxy) {
      NSLog(@"proxy,recieve message error");
  }
  NSLog(@"----%@",obj.message);
  }
  </code></pre>
  
  <p>Could any one tell me what I am doing wrong ?</p>