• 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: Problems with DO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with DO


  • Subject: Re: Problems with DO
  • From: Mike Ferris <email@hidden>
  • Date: Mon, 23 Dec 2002 13:54:39 -0800

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 <email@hidden>
Date: Mon Dec 23, 2002 1:09:46 PM US/Pacific
To: email@hidden
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
email@hidden
_______________________________________________
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: Problems with DO
      • From: Matt Massicotte <email@hidden>
References: 
 >Problems with DO (From: Matt Massicotte <email@hidden>)

  • Prev by Date: Re: Little problem with NSPopUpButton
  • Next by Date: Re: NSCFNumber, no pool in place - just leaking
  • Previous by thread: Problems with DO
  • Next by thread: Re: Problems with DO
  • Index(es):
    • Date
    • Thread