<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODQueryDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:objc(pl)ODQueryDelegate"
  },
  "title" : "ODQueryDelegate"
}
-->

# ODQueryDelegate

The `ODQueryDelegate` protocol defines methods for receiving results returned from an Open Directory query.

```
protocol ODQueryDelegate : NSObjectProtocol
```

## Topics

### Receiving results from a scheduled query

[`-  query:foundResults:error:`](/documentation/OpenDirectory/ODQueryDelegate/query(_:foundResults:error:))

The delegate method called as results are returned from a query scheduled in a run loop.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)