Re: Two-way connection with NSConnection
Re: Two-way connection with NSConnection
- Subject: Re: Two-way connection with NSConnection
- From: "Michael Ash" <email@hidden>
- Date: Thu, 6 Nov 2008 11:20:04 -0500
On Thu, Nov 6, 2008 at 6:38 AM, Stefan Hafeneger
<email@hidden> wrote:
> I've checked it again. The class name is still the one of the original
> object, but the class itself is NSDistributedObject. So it's exactly what I
> wanted.
And in fact it must be. The same object cannot exist in two different
processes, after all.
It is possible to have objects copied across the connection rather
than proxied. But this requires you to take explicit action to make it
happen (you have to conform to NSCoding in a special way, as I
remember it) and since you presumably didn't, that can't be happening.
But the purpose of an NSDistantObject is to look as much like the real
object as possible, so you have to examine it pretty closely to notice
the difference.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden