Re: Confused about Distributed Objects
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