<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObjectProtocol/isProxy()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(pl)NSObject(im)isProxy"
  },
  "title" : "isProxy()"
}
-->

# isProxy()

Returns a Boolean value that indicates whether the receiver does not descend from [`NSObject`](/documentation/ObjectiveC/NSObject-swift.class).

```
func isProxy() -> Bool
```

## Return Value

[`NO`](/documentation/ObjectiveC/NO) if the receiver really descends from [`NSObject`](/documentation/ObjectiveC/NSObject-swift.class), otherwise [`YES`](/documentation/ObjectiveC/YES).

## Discussion

This method is necessary because sending [`isKind(of:)`](/documentation/ObjectiveC/NSObjectProtocol/isKind(of:)) or [`isMember(of:)`](/documentation/ObjectiveC/NSObjectProtocol/isMember(of:)) to an <doc://com.apple.documentation/documentation/Foundation/NSProxy> object will test the object the proxy stands in for, not the proxy itself. Use this method to test if the receiver is a proxy (or a member of some other root class).

---

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)