• 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 or NSFileHandle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Distributed Objects or NSFileHandle?
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: Distributed Objects or NSFileHandle?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: [ANN] Article: Learn F-Script in 20 minutes and have fun with Core Image
  • Next by Date: Re: __CGPixelAccessLockWindowAccess???
  • Previous by thread: [ANN] Article: Learn F-Script in 20 minutes and have fun with Core Image
  • Next by thread: Re: Distributed Objects or NSFileHandle?
  • Index(es):
    • Date
    • Thread