iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 2.8

Posted: 2009-06-04

Build Requirements: iPhone SDK 3.0

Runtime Requirements: iPhone SDK 3.0

View Source Code:

Download Sample Code (“BonjourWeb.zip”, 43.2K)



Description

This application illustrates the fundamentals of browsing for network services using Bonjour. The BonjourBrowser hierarchically displays Bonjour domains and services as table views in a navigation controller. The contents of the table views are discovered and updated dynamically using NSNetServiceBrowser objects. Tapping an item in the services table causes the corresponding NSNetService object to be resolved asynchronously. When that resolution completes, a delegate method is called which constructs a URL and opens it in Safari.

Document Revision History

Date Notes
2009-06-04Fixed bug updating cells when all services are removed during a resolve.
2009-05-22Fixed table selection bug when no services are listed.
2009-05-18Upgraded for 3.0 SDK due to deprecated APIs.
2008-07-03First public release.
Did this document help you? Yes It's good, but... Not helpful...