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: John Anderson <email@hidden>
- Date: Fri, 2 Aug 2002 15:03:00 -0700
Everything you pass back and forth has to be based on NSObject; this is
because the root class is just "switched" with NSProxy to handle DO. So
you'll have to take your struct and convert it into an NSObject-based
class.
John Anderson
On Friday, August 2, 2002, at 02:42 PM, Jim Correia wrote:
I have a do client and a do server in another process.
The client would like to do
- (BOOL)getSomeInformation:(InformationStruct *)information;
- (BOOL)setSomeInformation:(InformationStruct *)information;
and pass a pointer to his own structure, have the server do a
computation, return success or failure, and fill in the structure.
I have the setSomeInformation side working. The problem I am seeing is
that the structure is fairly large, and as it gets passed across the
DO bridge, two bytes in the middle of the structure are being zeroed.
(I haven't closely inspected the structure for other damage).
Has anyone sen this before? Should I not pass structures? Is my
protocol wrong?
I can probably wrap the structure in a foundation type if necessary,
but I need to use the structure because it is defined by a linked
library and I cannot change it.
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.
_______________________________________________
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.