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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to