---
title: SBElementArray
framework: Scripting Bridge
role: symbol
role_heading: Class
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: scriptingbridge/sbelementarray
---

# SBElementArray

SBElementArray is subclass of NSMutableArray that manages collections of related SBObject objects. For example, when you ask the Finder for a list of disks, or ask iTunes for a list of playlists, you get the result back as an SBElementArray containing Scripting Bridge objects representing those items.

## Declaration

```swift
class SBElementArray
```

## Overview

Overview SBElementArray defines methods beyond those of NSArray for obtaining individual objects. In addition to object(at:), SBElementArray also defines object(withName:), object(withID:), and object(atLocation:). Subclassing Notes The SBElementArray class is not designed for subclassing.

## Topics

### Getting Objects in the Array

- [object(withName:)](scriptingbridge/sbelementarray/object(withname:).md)
- [object(withID:)](scriptingbridge/sbelementarray/object(withid:).md)
- [object(atLocation:)](scriptingbridge/sbelementarray/object(atlocation:).md)

### Getting the Referenced Array

- [get()](scriptingbridge/sbelementarray/get().md)

### Filtering an Element Array

- [array(byApplying:)](scriptingbridge/sbelementarray/array(byapplying:).md)
- [array(byApplying:with:)](scriptingbridge/sbelementarray/array(byapplying:with:).md)

## Relationships

### Inherits From

- [NSMutableArray](foundation/nsmutablearray.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSFastEnumeration](foundation/nsfastenumeration.md)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)
