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 PROTECTED] wrote:

Message: 14
Date: Thu, 11 Sep 2008 19:51:44 +1000
From: Steve Steinitz <[EMAIL PROTECTED]>
Subject: Inter-machine notifications
To: cocoa-dev@lists.apple.com
Message-ID:
        <[EMAIL PROTECTED]>
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to