<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/protocol_copyMethodDescriptionList(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@F@protocol_copyMethodDescriptionList"
  },
  "title" : "protocol_copyMethodDescriptionList(_:_:_:_:)"
}
-->

# protocol_copyMethodDescriptionList(_:_:_:_:)

Returns an array of method descriptions of methods meeting a given specification for a given protocol.

```
func protocol_copyMethodDescriptionList(_ proto: Protocol, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<objc_method_description>?
```

## Parameters

`proto`

A protocol.

`isRequiredMethod`

A Boolean value that indicates whether returned methods should be required methods (pass [`YES`](/documentation/ObjectiveC/YES) to specify required methods).

`isInstanceMethod`

A Boolean value that indicates whether returned methods should be instance methods (pass [`YES`](/documentation/ObjectiveC/YES) to specify instance methods).

`outCount`

Upon return, contains the number of method description structures in the returned array.

## Return Value

A C array of `objc_method_description` structures containing the names and types of `p`’s methods specified by `isRequiredMethod` and `isInstanceMethod`. The array contains `*outCount` pointers followed by a `NULL` terminator. You must free the list with `free()`.

## Discussion

If the protocol declares no methods that meet the specification, `NULL` is returned and `*outCount` is `0`.

## Discussion

Methods in other protocols adopted by this protocol are not included.

---

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)