Re: Cocoa (or any Mac API) "browse for computer" dialog
Re: Cocoa (or any Mac API) "browse for computer" dialog
- Subject: Re: Cocoa (or any Mac API) "browse for computer" dialog
- From: Chris Hanson <email@hidden>
- Date: Thu, 08 May 2014 21:27:15 -0700
On May 8, 2014, at 9:02 AM, Dan Korn <email@hidden> wrote:
I thought this would be pretty easy, but I’m having a heck of a time figuring out how to present a dialog to the user to select (choose) from a list of computers on the network.
What you’re looking for are NSNetService and NSNetServiceBrowser, they allow you to browse via Bonjour for all of the services on both the local networks and any wide-area Bonjour networks that the user has joined.
Note that you don’t browse for computers on a network; rather, you browse for services on a network. Only computers offering the service for which you’re browsing will show up — and really, what use are computers to your users that aren’t offering the service? :)
-- Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden