• 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: Two-way connection with NSConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Two-way connection with NSConnection (From: Stefan Hafeneger <email@hidden>)
 >Re: Two-way connection with NSConnection (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Two-way connection with NSConnection (From: Stefan Hafeneger <email@hidden>)

  • Prev by Date: Re: Enumerating outlets automatically?
  • Next by Date: Re: Issue with the downloading url
  • Previous by thread: Re: Two-way connection with NSConnection
  • Next by thread: Issue with the downloading url
  • Index(es):
    • Date
    • Thread