Re: DO question.
Re: DO question.
- Subject: Re: DO question.
- From: Jonathan Wight <email@hidden>
- Date: Mon, 01 Apr 2002 16:54:59 -0600
On 04/01/2002 15:57, "warren marco" <email@hidden> wrote:
>
Oh no..... well.. how is your server connection set up? proper send and
>
receive ports? or just a receive?( is that possible?)
>
Also..... try implementing a protocol. This could be your problem. On
>
the client side it doesn't know that its sending a byref return SEL.
>
Try this... cross your fingers.... create a file ServerProto.h
>
>
#import "CAttributes.h"
>
@protocol ServerProto{
>
>
>
}
>
- (byref CAttributes *) getAttributes;
>
@end
>
>
Now in your server def...
>
>
#import "ServerProto.h"
>
@interface CDaemon <ServerProto> {
>
CAttributes *mAttributes;
>
}
>
@end
>
>
And then in the implementation....
>
>
- (byref CAttributes *) getAttributes{ return mAttributes;};
>
>
Then include ServerProto protocol in the client code code....
>
>
Then do something like this:
>
#import "ServerProto.h"
>
theServer =[connection rootProxy];
>
[theServer retain];
>
if(theServer == nil) NSLog(@"No server object to communicate with");
>
[theServer setProtocolForProxy:@protocol(ServerProto)];//<----- Make
>
sure this is called
>
>
This way the client knows it's byref. I may be pulling at strings but
>
try it. You should be implementing a protocol anyways to save your butt
>
from sending bad messages.
>
>
Hope this works!!!!!!!!! good luck
Hi Warren,
Already doing all that. Plus the connection seems to be working fine for
other methods sent the via the Cdaemon proxy... The thing Ondra mentioned
about NSDictionaries being sent via bycopy would seem to be the problem. The
only issue I have no is fixing it.
Jon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.