---
title: weakObjects()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nspointerarray/weakobjects()
---

# weakObjects()

Returns a new pointer array that maintains weak references to its elements.

## Declaration

```swift
class func weakObjects() -> NSPointerArray
```

## Return Value

Return Value A new pointer array that maintains weak references to its elements.

## See Also

### Creating and Initializing a New Pointer Array

- [init(options:)](foundation/nspointerarray/init(options:).md)
- [init(pointerFunctions:)](foundation/nspointerarray/init(pointerfunctions:).md)
- [strongObjects()](foundation/nspointerarray/strongobjects().md)
