diff -r cb9cdf247239 -r 59689fbdcf77 Bonjour/MYBonjourBrowser.h --- a/Bonjour/MYBonjourBrowser.h Wed Apr 22 16:45:39 2009 -0700 +++ b/Bonjour/MYBonjourBrowser.h Tue Apr 28 10:36:28 2009 -0700 @@ -6,17 +6,15 @@ // Copyright 2008 Jens Alfke. All rights reserved. // -#import +#import "MYDNSService.h" /** Searches for Bonjour services of a specific type. */ -@interface MYBonjourBrowser : NSObject +@interface MYBonjourBrowser : MYDNSService { @private NSString *_serviceType; - NSNetServiceBrowser *_browser; BOOL _browsing; - NSError *_error; Class _serviceClass; NSMutableSet *_services, *_addServices, *_rmvServices; } @@ -26,19 +24,9 @@ @param serviceType The name of the service type to look for, e.g. "_http._tcp". */ - (id) initWithServiceType: (NSString*)serviceType; -/** Starts browsing. This is asynchronous, so nothing will happen immediately. */ -- (void) start; - -/** Stops browsing. */ -- (void) stop; - /** Is the browser currently browsing? */ @property (readonly) BOOL browsing; -/** The current error status, if any. - This is KV-observable. */ -@property (readonly,retain) NSError* error; - /** The set of currently found services. These are instances of the serviceClass, which is BonjourService by default. This is KV-observable. */