<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/mutableCopy()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)mutableCopy"
  },
  "title" : "mutableCopy()"
}
-->

# mutableCopy()

Returns the object returned by `mutableCopy(with:)` where the zone is `nil`.

```
func mutableCopy() -> Any
```

## Return Value

The object returned by the <doc://com.apple.documentation/documentation/Foundation/NSMutableCopying> protocol method <doc://com.apple.documentation/documentation/Foundation/NSMutableCopying/mutableCopy(with:)>, where the zone is `nil`.

## Discussion

This is a convenience method for classes that adopt the <doc://com.apple.documentation/documentation/Foundation/NSMutableCopying> protocol. An exception is raised if there is no implementation for <doc://com.apple.documentation/documentation/Foundation/NSMutableCopying/mutableCopy(with:)>.

---

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)