Distributed Objects or NSFileHandle?
Distributed Objects or NSFileHandle?
- Subject: Distributed Objects or NSFileHandle?
- From: Kam Dahlin <email@hidden>
- Date: Thu, 21 Jun 2007 11:30:41 -0700
I was hoping for some advice from those who have a bit more
experience in the area of network client communication / data sharing.
I am working on an app that will allow users to read shared files
(think shared iTunes music or iPhoto library) from other users
machines discovered via an advertised Bonjour service and wanted to
know the best course of action for actually sharing the data. I have
bonjour services up and running and my clients can see each other,
but in researching how to share the data between the different
clients, I have a few questions.
Is it better to use NSFileHandles to read and write data across the
network, or can I use DO and send the data to the clients inside of
an NSData object? How do iTunes or iPhoto share out their libraries
to clients? I am looking to do a similar kind of thing but with my
own file type.
I haven't seen any example code out there using DO like this, so I am
guessing that NSFileHandles are the way to go, but DO is really
powerful and it would be great if I could share my data to the
clients using this system. I have looked at the PictureSharing/
PictureSharingBrowser examples and Apple doesn't use DO to send the
picture data between the clients - they use NSFileHandles.
I am sure this is a rookie question, but this is my first step into
using these technologies and I would like to start off on the right
track.
Any advice/info is much appreciated.
Regards,
Kam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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