Problem solved. You must retain the service returned with -[NSNetServiceBrowserDelegate didFindService:moreComing:].
-Michael On Jul 26, 2010, at 11:34 AM, Michael Crawford wrote: > I've been using the WiTap sample as a template for learning to use > NSNetServiceBrowser and NSNetService. I have an iPhone server which appears > to be working and is advertising a service using the -publish API. I > basically lifted the TCPServer class from WiTap. > > I then created a client for the desktop from scratch using the > NSNetServiceBrowser, NSNetServiceBrowserDelegate, NSNetService and > NSNetServiceDelegate. > > The browser returns a service, which I then send a -resolveWithTimeout > message to. I get the -netServiceWillResolve delegate callback but after > that, nada. I never receive the -netServiceDidResolveAddress call or the > -netService:didNotResolve call. I've used timeout values of 60.0 and 0.0; 1 > minute and forever, respectively. > > Since WiTap runs on my device and the simulator, and I am able to connect the > two successfully, I know that the networking hardware and software > sub-systems are working and configured properly. > > Any ideas? > > -Michael > _______________________________________________ > > 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/michaelacrawford%40me.com > > This email sent to michaelacrawf...@me.com _______________________________________________ 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 arch...@mail-archive.com