diff -r aab592ac36fc -r 60f2b46d9a3b Bonjour/MYBonjourService.m --- a/Bonjour/MYBonjourService.m Tue May 05 23:24:50 2009 -0700 +++ b/Bonjour/MYBonjourService.m Sat May 16 14:10:15 2009 -0700 @@ -232,7 +232,8 @@ &resolveCallback, self); } -- (MYAddressLookup*) addressLookupObservingNewAddresses:(NSObject *)observer { + +- (MYAddressLookup*) addressLookup { if (!_addressLookup) { // Create the lookup the first time this is called: _addressLookup = [[MYAddressLookup alloc] initWithHostname: self.hostname]; @@ -240,17 +241,10 @@ _addressLookup.interfaceIndex = _interfaceIndex; } // (Re)start the lookup if it's expired: - if (_addressLookup && _addressLookup.timeToLive <= 0.0) { - if (observer != nil) { - [_addressLookup addObserver:observer forKeyPath:@"addresses" options:NSKeyValueObservingOptionNew context:NULL]; - } + if (_addressLookup && _addressLookup.timeToLive <= 0.0) [_addressLookup start]; - } return _addressLookup; } -- (MYAddressLookup*) addressLookup { - return [self addressLookupObservingNewAddresses:nil]; -} - (MYBonjourQuery*) queryForRecord: (UInt16)recordType {