• 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: Inter-machine notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inter-machine notifications


  • Subject: Re: Inter-machine notifications
  • From: Kirk Kerekes <email@hidden>
  • Date: Thu, 11 Sep 2008 11:58:30 -0500

I would look at Distributed Objects again. It really isn't intrinsically "client-server" oriented any more than Cocoa is. A client-server architecture is just one way to use the distributed object functionality. It does tend to be easier to have a single- source-for-truth to keep things organized, however, but that is a general data problem not related to DO.

For a possibly useful demo and source-code, check out "Distributed Objects Demo" at <http://www.thotzy.com/THOTZY/Codez.html>, or just go to thotzy.com and click on the "CODES" navigation item at the top of the main page.

The demo implements both same-machine and local-subnet DO, and several different threading schemes.

The demo also demonstrates painless Bonjour using NSPortNameServer without needing to fuss with NSNetService or NSNetServiceBrowser.

The demo was originally written as a bug-report demo to reveal a port leak in certain configurations of threaded DO. That port leak appears to have been fixed in Leopard.

On Sep 11, 2008, at 4:53 AM, email@hidden wrote:

Message: 14
Date: Thu, 11 Sep 2008 19:51:44 +1000
From: Steve Steinitz <email@hidden>
Subject: Inter-machine notifications
To: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hello,

We have a Core Data app running on 5 computers.  We've used a
variety of kludges and nasty overkills to keep the data
consistent on the shared sqlite database.  Now, however, it
appears that we will need some kind of notifications for
critical inventory changes to the database.

I implemented a NSDistributedNotificationCenter notification but
realized it was not as distributed as I had thought (only
intra-machine). I prototyped Distributed Objects but after
setting up a connection and a server protocol, I couldn't easily
get the proxy object from one machine to the other and thought
it didn't look like the right mechanism anyway (no notification,
too client-servery, not peer enough by default). Sync Services
is a possibility but I really just want a notification - not a synchronization.


What approach do others use for inter-machine peer notifications?

Thanks in advance for any helpful comments or sample code,

Steve

_______________________________________________

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


  • Prev by Date: creating new instance of coredata entity
  • Next by Date: Re: creating new instance of coredata entity
  • Previous by thread: Inter-machine notifications
  • Next by thread: Re: Inter-machine notifications
  • Index(es):
    • Date
    • Thread