Re: Distributed Objects passing structures? (punching holes in my data)
Re: Distributed Objects passing structures? (punching holes in my data)
- Subject: Re: Distributed Objects passing structures? (punching holes in my data)
- From: Jim Correia <email@hidden>
- Date: Sat, 3 Aug 2002 03:30:27 -0400
On Saturday, August 3, 2002, at 01:19 AM, John Anderson wrote:
Sorry then, I guess I was mistaken. I thought everything had to be
serializable. My mistake.
It does, but things happen underneath you.
It looks like the structure is mis-encoded for the invocation?
The structure is fairly complex which lends credibility to that
theory. (If I were really curious I'd try the same with NSArchiver,
but now that I've got a workaround I've got to wrap up the problem
I was trying to solve first.) If instead I do
typedef struct
{
char hidden[sizeof(InformationStruct)];
} OpaqueInformationStruct;
- (BOOL) setSomeInformation:(OpaqueInformationStruct *)information;
InformationStruct aStruct;
[proxy setSomeInformation: (OpaqueInformationStruct *)&aStruct];
things go across in tact.
A bug has been filed with sample code.
Thanks,
Jim
_______________________________________________
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.