Re: NSNetService won't resolve
Re: NSNetService won't resolve
- Subject: Re: NSNetService won't resolve
- From: Marc Krochmal <email@hidden>
- Date: Sun, 02 Nov 2008 18:31:22 -0800
Hi Benjámin,
On Oct 31, 2008, at 10:37 AM, Benjámin Salánki wrote:
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?
You need to retain aNetService before resolving.
-Marc
_______________________________________________
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