• 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: Confused about Distributed Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused about Distributed Objects


  • Subject: Re: Confused about Distributed Objects
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 6 Apr 2006 03:21:39 +0200

Ivan,

On 6.4.2006, at 3:03, Ivan Kourtev wrote:

id *s = [fooProxy aName];
[s retain];

This seems to be all working fine. If I check the class of s it is NSCFString and not NSDistantObject.

Now, as I understand it from the DO documentation, typically you get an NSDistantObject back...and this is indeed what I get for fooProxy in my app above when I set up the connection between the threads.

Did I just get a real NSCFString because the link is between two threads in the same app?

No. You got an NSString since NSStrings are transferred by default bycopy. You would get an NSString all the same if the other side run on a different machine.


That said, there *might* be some extra hacks in DO to make the thing more efficient in shared-memory environment, but personally I doubt it.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Confused about Distributed Objects (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: NSTableView: displaying number of selected rows (error with image)
  • Next by Date: Thread safety issue...
  • Previous by thread: Confused about Distributed Objects
  • Next by thread: Re: NSTableView: displaying number of selected rows (error with image)
  • Index(es):
    • Date
    • Thread