Hi

I'm trying to set up a distributed object client, but can't see any way to get the local domain (not localhost) to use in rootProxyForConnectionWithRegisteredName:host: The documentation for NSConnection states that:

"The host name. The domain name hostName is an Internet domain name (for example, "sales.anycorp.com"). If hostName is nil or empty, then only the local host is searched for the named NSConnection object."

But it doesn't offer any info for the presumably common case where you know the registered name and know it is on the local domain, but is not localhost.

I looked into NSNetServiceBrowser's searchForServicesOfType: inDomain: to find the known service name but that requires that you know the service type. NSConnection, of course makes no mention of what type it registers distributed objects, so it seems, at least from available documentation, that you are forced to hard code in domains. I'm sure this must be just a documentation bug, so how does one discover the local domain?

Thanks for any help


_______________________________________________

Cocoa-dev mailing list ([email protected])

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