<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPointerFunctions/Options/strongMemory",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSPointerFunctionsOptions@NSPointerFunctionsStrongMemory"
  },
  "title" : "strongMemory"
}
-->

# strongMemory

Use strong write-barriers to backing store; use garbage-collected memory on copy-in.

```
static var strongMemory: NSPointerFunctions.Options { get }
```

## Discussion

This is the default memory value.

As a special case, if you do not use garbage collection and specify this value in conjunction with [`objectPersonality`](/documentation/Foundation/NSPointerFunctions/Options/objectPersonality) or [`objectPointerPersonality`](/documentation/Foundation/NSPointerFunctions/Options/objectPointerPersonality) then the `NSPointerFunctions` object uses `retain` and `release`.

If you do not use garbage collection, and specify this value in conjunction with a valid non-object personality, it is the same as specifying [`mallocMemory`](/documentation/Foundation/NSPointerFunctions/Options/mallocMemory).

---

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)