// // EchoMe.m // Connection // // Created by H. Nikolaus Schaller on 23.10.09. // Copyright 2009 Golden Delicious Computers GmbH&Co. KG. All rights reserved. // #import "EchoMe.h" @implementation Server - (byref id) getMutableCopy:(bycopy id) str inout:(inout byref id) replaceme; { NSLog(@"Server: getMutableCopy: %@ inout: %@", str, replaceme); replaceme=[replaceme stringByAppendingString:@"+"]; return [[str mutableCopy] autorelease]; } - (NSString *) description { NSLog(@"Server: asking for description"); return [super description]; } - (Class) class { NSLog(@"Server: asking for class"); return [super class]; } - (void) raiseException; { // return an exception [NSException raise:@"Server" format:@"Server raised exception"]; } - (id) myself { return self; } - (id) other; { return [[[NSObject alloc] init] autorelease]; // return a new object each time } - (id) echo:(id) arg { return arg; } @end