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

Distributed Objects question


  • Subject: Distributed Objects question
  • From: Mike Kobb <email@hidden>
  • Date: Thu, 20 Jul 2006 14:35:08 -0700

Greetings,

If this is covered someplace in Apple's docs, please point me there. I've looked and looked.

I'm using Distributed Objects to communicate between two Cocoa apps. It all seems to work very well. My "server" app vends an object by registering an NSProtocolChecker with the default NSConnection, and the client gets the object just fine.

Here's what I couldn't find in the documentation. Let's say that the server needs to shut down. Is there some graceful way for it to do so to ensure that connected clients know that it has gone away, and can stop trying to use the object that was vended?

Right now, I just invalidate the connection that I opened, and have the client check for timeout exceptions and so forth.

If there's a good reference for DO programming, I'd love to know what it is. Apple's docs were pretty good in terms of getting it all set up, but are typically pretty short on source samples and didn't really discuss this topic much at all.

Thanks!
--Mike

_______________________________________________
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


  • Follow-Ups:
    • Re: Distributed Objects question
      • From: "Michael Ash" <email@hidden>
    • Re: Distributed Objects question
      • From: "Tom Harrington" <email@hidden>
  • Prev by Date: Re: NSBrowserCell not extensible; need sample using NSButtonCell
  • Next by Date: SearchKit - SKDocumentCreateWithURL
  • Previous by thread: Re: NSOpenPanel and executable files
  • Next by thread: Re: Distributed Objects question
  • Index(es):
    • Date
    • Thread