• 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: 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.

References: 
 >Re: Distributed Objects passing structures? (punching holes in my data) (From: John Anderson <email@hidden>)

  • Prev by Date: NSNumber math operations category
  • Next by Date: Re: InfoPlist.strings
  • Previous by thread: Re: 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