• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSNetService resolve problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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", "netService: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.
  • Prev by Date: NSZombie output
  • Next by Date: NSImages and Distributed Objects
  • Previous by thread: NSZombie output
  • Next by thread: NSImages and Distributed Objects
  • Index(es):
    • Date
    • Thread