NSNetService resolve problem
NSNetService resolve problem
- Subject: NSNetService resolve problem
- From: Ruben Smits <email@hidden>
- Date: Thu, 15 May 2003 11:24:09 +0200
Hi,
I am trying to find the address in the network of a server.
In the delegate of NSNetServiceBrowser I have the method
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser
didFindDomain:(NSString *)domainString moreComing:(BOOL)moreComing
{
NSNetService *netService = [[NSNetService alloc]
initWithDomain:@"local." type:@"_http._tcp." name:@"SomeName"];
[netService setDelegate:self];
[netService resolve];
}
After the [netService resolve], the
"netServiceWillResolve:(NSNetService *)sender" method in the delegate
of the netService (in my code self) is reached.
In this last delegate I also implemented the methods
"netServiceDidResolveAddress:sender", "net
Service:sender
didNotResolve:errorDict" and "netServiceDidStop:sender".
I'd expect one of these methods should be reached after the
"netServiceWillResolve", but none of them is reached.
What am I missing? Any suggestion? Anybody who got these methods
working in their code?
Thanks!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.