Skip navigation.
 
mlRe: Problems with DO
FROM : Mike Ferris
DATE : Mon Dec 23 22:54:39 2002

If an object will go "bycopy" across the wire in DO, it has to conform
to the NSCoding protocol (which is the same protocol used by the
archiving stuff).  Do your objects conform to NSCoding?

It is possible you might also have to implement
-replacementObjectForPortCoder: to return self if [coder isByCopy]
returns YES, but I can't remember right now if this is actually
required.

Mike


Begin forwarded message:

> From: Matt Massicotte <matthew.<email_removed>>
> Date: Mon Dec 23, 2002  1:09:46 PM US/Pacific
> To: <email_removed>
> Subject: Problems with DO
>
> Hi everyone,
>
> Put a question up to the list about a month ago concerning some
> strange behaviour with DO.  My original problem was that if I passed
> an NSString or NSNumber, or an NSArray of those objects, everything
> worked, but my own objects didn't survive the trip across the network.
>
> Someone replied, saying that they had a similar problem, and that
> explicitly using NSArchiver and NSUnarchiver solved their problem.  I
> tried, and it worked for me too.  I find this puzzling because DO's
> documentation gave me the impression that this was automatically done.
>  Anyways...
>
> Now, my problem is that a method that returns (bycopy id) is returning
> objects that respond YES to [obj isProxy].  What am I missing here?  I
> thought that bycopy will produce a copy of the object in the calling
> processes space.  I am sure that I'm somehow implementing things
> wrong, but I can't find a problem.  Has anyone else see anything like
> this?
>
> Matt Massicotte
> matthew.<email_removed>
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlProblems with DO Matt Massicotte Dec 23, 22:09
mlRe: Problems with DO Mike Ferris Dec 23, 22:54
mlRe: Problems with DO Matt Massicotte Dec 23, 23:28