Mac OS X Reference Library Apple Developer
Search

PictureSharing

Last Revision:
Version 2.0, 2010-08-06
A major rewrite to bring the code in line with the latest best practices. Specifically, this release merged the PictureSharing and PictureSharingBrowser samples, added IPv6 support, adopted bindings, adopted NSOperation to encapsulate the async file transfer, added a simple protocol to detect file transfer errors, eliminated pointless Bonjour resolves, added support for automatic Bonjour service renaming and persistence, and eliminated NSFileHandle in favour of NSStream.
(Full Revision History)
Build Requirements:
Xcode 3.2 or later
Runtime Requirements:
Mac OS X 10.5.8 or later

This sample demonstrates how to use NSNetService to publish and discover a service using Bonjour, and how to use a run loop based concurrent NSOperation to transfer files. It includes both the server (PictureSharing) and client (PictureSharingBrowser) projects. Once you start the PictureSharing server, PictureSharingBrowser clients will be able to view pictures being shared by that server.




Last updated: 2010-08-06

Did this document help you? Yes It's good, but... Not helpful...