<!--
{
  "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/netServiceBrowser(_:didNotSearch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSNetServiceBrowserDelegate(im)netServiceBrowser:didNotSearch:"
  },
  "title" : "netServiceBrowser(_:didNotSearch:)"
}
-->

# netServiceBrowser(_:didNotSearch:)

Tells the delegate that a search was not successful.

```
optional func netServiceBrowser(_ browser: NetServiceBrowser, didNotSearch errorDict: [String : NSNumber])
```

## Parameters

`browser`

Sender of this delegate message.

`errorDict`

Dictionary with the reasons the search was unsuccessful. Use the dictionary keys [`errorCode`](/documentation/Foundation/NetService/errorCode-swift.type.property) and [`errorDomain`](/documentation/Foundation/NetService/errorDomain) to retrieve the error information from the dictionary.

## Discussion

---

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)