<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NetServiceBrowserDelegate/netServiceBrowserDidStopSearch(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSNetServiceBrowserDelegate(im)netServiceBrowserDidStopSearch:"
  },
  "title" : "netServiceBrowserDidStopSearch(_:)"
}
-->

# netServiceBrowserDidStopSearch(_:)

Tells the delegate that a search was stopped.

```
optional func netServiceBrowserDidStopSearch(_ browser: NetServiceBrowser)
```

## Parameters

`browser`

Sender of this delegate message.

## Discussion

When `netServiceBrowser` receives a [`stop()`](/documentation/Foundation/NetServiceBrowser/stop()) message from its client, `netServiceBrowser` sends a `netServiceBrowserDidStopSearch:` message to its delegate. The delegate then performs any necessary cleanup.

## See Also

[`-  stop`](/documentation/Foundation/NetServiceBrowser/stop())

Halts a currently running search or resolution.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)