• 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 won't resolve
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Simple Flipbook Animation?
  • Next by Date: Re: Document dirty state during field edit
  • Previous by thread: Re: Simple Flipbook Animation?
  • Next by thread: NSData dataWithContentsOfFile - freeWhenDone:NO ?
  • Index(es):
    • Date
    • Thread