• 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 my objects to distant object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects: Passing my objects to distant object


  • Subject: Re: Distributed Objects: Passing my objects to distant object
  • From: Wade Tregaskis <email@hidden>
  • Date: Tue, 13 Jul 2004 15:53:57 +1000

Are there any special issues to consider in getting this to work? I have been able to run simple methods like this (passing an NSNumber or something) but when I use my own objects, I get crashes. Do I have to implement my own coding protocols to be able to pass my objects, which I gather must by value?

You need to support the NSCoding protocol, which allows your custom classes to be serialized for transport and reconstructed on the other side. Alternatively, you should be able to specify byref in your protocol (used for communication), and then since you wouldn't need to copy your classes, it should work. But I may be forgetting something, so, ultimately your best bet is to read up on the DO doc's some more, starting with the NSCoding stuff.

Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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: 
 >Distributed Objects: Passing my objects to distant object (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: AppleScript create command
  • Next by Date: Re: Action isn't sent
  • Previous by thread: Distributed Objects: Passing my objects to distant object
  • Next by thread: Re: Distributed Objects: Passing my objects to distant object
  • Index(es):
    • Date
    • Thread