NSNetService won't resolve
NSNetService won't resolve
- Subject: NSNetService won't resolve
- From: Benjámin Salánki <email@hidden>
- Date: Fri, 31 Oct 2008 18:37:13 +0100
Hi all,
I have an NSNetService enabled app that acts as both the client and
the server on the same machine.
My problem is that once I register the service I create and I want to
set up the connection the aNetService returned has an empty array for
the addresses in
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser
didFindService:(NSNetService *)aNetService
moreComing:(BOOL)moreComing
now if I call
[aNetService setDelegate:self];
[aNetService resolveWithTimeout:5.0];
neither - (void)netServiceDidResolveAddress:(NSNetService *)sender
nor - (void)netService:(NSNetService *)sender didNotResolve:
(NSDictionary *)errorDict get called even though I set the delegate
and everything.
I have written some Bonjour based applications before all based on
Apple's Picture sharing sample code and I have not faced this problem
before.
Is there something obvious I'm missing here?
Thanks for any input on this matter.
Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden