---
title: containerIsRangeContainerObject
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptobjectspecifier/containerisrangecontainerobject
---

# containerIsRangeContainerObject

Sets whether the receiver’s container is to be the container for a range specifier or a top-level object.

## Declaration

```swift
var containerIsRangeContainerObject: Bool { get set }
```

## Discussion

Discussion If the receiver’s container specifier is nil and flag is true, sets the receiver’s container to be the container for a range specifier. If the receiver’s container specifier is nil and flag is false, sets the receiver’s container to be the top-level object. If flag is true, containerIsObjectBeingTested should not also be invoked with an argument of true.

## See Also

### Getting, testing, and setting containers

- [containerClassDescription](foundation/nsscriptobjectspecifier/containerclassdescription.md)
- [containerIsObjectBeingTested](foundation/nsscriptobjectspecifier/containerisobjectbeingtested.md)
- [container](foundation/nsscriptobjectspecifier/container.md)
