Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSNetServiceBrowserMBS class.

NSNetServiceBrowserMBS.DidFindDomain(domainName as String, moreComing as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you the sender found a domain.

domainName: Name of the domain found by netServiceBrowser.
moreComing: True when netServiceBrowser is waiting for additional domains. false when there are no additional domains.

You use this event to compile a list of available domains. It should wait until moreComing is false to do a bulk update of user interface elements.

Some examples using this event:

NSNetServiceBrowserMBS.DidFindService(service as NSNetServiceMBS, moreComing as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you that it found a service.

Service: Network service found by netServiceBrowser.
moreComing: True when netServiceBrowser is waiting for additional services. False when there are no additional services.

You use this event to compile a list of available services. It should wait until moreComing is false to do a bulk update of user interface elements.

Special Considerations
If you choose to resolve netService, you need to create a new object with copy constructor in your subclass to catch events. And please store the new reference in an array or property.

Some examples using this event:

NSNetServiceBrowserMBS.DidNotSearch(error as Dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you that a search was not successful.

error: Dictionary with the reasons the search was unsuccessful. Use the dictionary keys NSNetServicesErrorCode and NSNetServicesErrorDomain to retrieve the error information from the dictionary.

Some examples using this event:

NSNetServiceBrowserMBS.DidRemoveDomain(domainName as String, moreComing as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you that a domain has disappeared or has become unavailable.

domainName: Name of the domain that became unavailable.
moreComing: True when netServiceBrowser is waiting for additional domains. False when there are no additional domains.

You this event to compile a list of unavailable domains. It should wait until moreComing is false to do a bulk update of user interface elements.

Some examples using this event:

NSNetServiceBrowserMBS.DidRemoveService(service as NSNetServiceMBS, moreComing as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you a service has disappeared or has become unavailable.

Service: Network service that has become unavailable.
moreComing: True when netServiceBrowser is waiting for additional services. False when there are no additional services.

You this event to compile a list of unavailable services. It should wait until moreComing is false to do a bulk update of user interface elements.

Some examples using this event:

NSNetServiceBrowserMBS.DidStopSearch

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you that a search was stopped.

Triggered by stop method.

Some examples using this event:

NSNetServiceBrowserMBS.WillSearch

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes
Tells you that a search is commencing.

This event is raised only if the underlying network layer is ready to begin a search.

Some examples using this event:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...