• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Distributed Objects passing structures? (punching holes in my data)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Distributed Objects passing structures? (punching holes in my data)
      • From: Jim Correia <email@hidden>
References: 
 >Distributed Objects passing structures? (punching holes in my data) (From: Jim Correia <email@hidden>)

  • Prev by Date: Distributed Objects passing structures? (punching holes in my data)
  • Next by Date: Re: Distributed Objects passing structures? (punching holes in my data)
  • Previous by thread: Distributed Objects passing structures? (punching holes in my data)
  • Next by thread: Re: Distributed Objects passing structures? (punching holes in my data)
  • Index(es):
    • Date
    • Thread