NSNetServiceBrowserMBS events

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem