Skip to content

Commit

Permalink
problem when the port was discover a bit late
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Sep 24, 2010
1 parent 17d1443 commit b985b6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iProxyMacSetup/Classes/iProxyMacSetupAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
[self startBrowsingServices];
[self addObserver:self forKeyPath:@"proxyServiceList" options:NSKeyValueObservingOptionNew context:nil];
[self addObserver:self forKeyPath:@"interfaceList" options:NSKeyValueObservingOptionNew context:nil];
[self addObserver:self forKeyPath:@"resolvingServiceCount" options:NSKeyValueObservingOptionNew context:nil];
}

- (void)applicationWillTerminate:(NSNotification *)notification
Expand Down Expand Up @@ -71,7 +72,7 @@ - (void)_updateAutomatic
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if (object == self) {
if ([keyPath isEqualToString:@"proxyServiceList"] || [keyPath isEqualToString:@"interfaceList"]) {
if ([keyPath isEqualToString:@"proxyServiceList"] || [keyPath isEqualToString:@"interfaceList"] || [keyPath isEqualToString:@"resolvingServiceCount"]) {
[self _updateAutomatic];
}
}
Expand Down

0 comments on commit b985b6f

Please sign in to comment.