View errata for Rendezvous


Page 437

The line that says:

[aNetService resolve];

On a large network, resolving every server found can create a lot of unnecessary network traffic.

A better solution would be to move resolving to the subscribe: method:

currentService = [services objectAtIndex:
                                  [hostField indexOfSelectedItem]];
[currentService resolve];
Then the rest of the method should be in the delegate's call back:
- (void)netServiceDidResolveAddress:(NSNetService *)sender
(Thanks to Jeremy Wyld for this suggestion.)



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com