• 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
Re: NSNetService addresses returns empty array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNetService addresses returns empty array


  • Subject: Re: NSNetService addresses returns empty array
  • From: Chris Parker <email@hidden>
  • Date: Thu, 26 Sep 2002 13:54:39 -0700

Hi Greg,

On Thursday, September 26, 2002, at 05:57 AM, Greg Hulands wrote:

[code clipped]

When trying to format the IP address, the addresses returns an empty
array. Both the client and server are on the same machine, but i don't
think that is the cause as the NSNetService example works fine. The
documentation says

If no addresses were resolved for the service, the returned NSArray
contains zero elements.

What would cause the non-resolution of the address when it is on the
same machine?

The first thing I'd do is implement the netService:didNotResolve: method in your delegate object and find out if you're getting errors on the resolve. The error codes should tell you what items are going south or whether you've got the service doing something else.

.chris

--
Chris Parker
Cocoa Frameworks Engineer
Apple Computer, Inc.
_______________________________________________
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.

References: 
 >NSNetService addresses returns empty array (From: Greg Hulands <email@hidden>)

  • Prev by Date: dragPromisedFilesOfTypes produces CFURLGetFSRef (failed)
  • Next by Date: Re: nil messaging? Is it safe?
  • Previous by thread: NSNetService addresses returns empty array
  • Next by thread: Re: Pointer to static object member
  • Index(es):
    • Date
    • Thread