May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSNetServiceBrowser — Mac OS X 10.2
NSNetServiceBrowser is the complement to
NSNetService and it serves two purposes: searching
for network
domains, and searching for network services advertised on a given
domain. When searching for domains we can either look for all
domains, or only those that we have registration authority in. These
searches are performed by invoking the methods
searchForAllDomains and
searchForRegistrationDomains, respectively. For
more information about Rendezvous and the Net Services APIs in
Foundation, see Chapter 6.
|
|
@interface NSNetServiceBrowser : NSObject
|
// Initializers
|
- (id)init;
|
// Accessor Methods
|
- (void)setDelegate:(id)delegate; |
- (id)delegate;
|
// Instance Methods
|
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode; |
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode; |
- (void)searchForAllDomains;
|
- (void)searchForRegistrationDomains;
|
- (void)searchForServicesOfType:(NSString *)type inDomain:(NSString *)domainString; |
- (void)stop;
|
// Methods Implemented by the Delegate
|
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didFindDomain:(NSString *)domainString moreComing:(BOOL)moreComing; |
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didFindService:(NSNetService *)aNetService moreComing:(BOOL)moreComing; |
- (void)netServiceBrowser ... |
Read now
Unlock full access