One Logo Pool Ball
Foundation · IOS API REFERENCE

NSMutableArray

class · SDK 27.1

class NSMutableArray

Members (26)

subscript

subscript

TypeScript
subscript(idx: number): unknown
Swift declaration
subscript(idx: Int) -> Any { get set }
method

add

TypeScript
add(anObject: unknown): void
Swift declaration
func add(_ anObject: Any)
method

addObjects

TypeScript
addObjects(otherArray: Array<unknown>): void
Swift declaration
func addObjects(from otherArray: [Any])
method

exchangeObject

TypeScript
exchangeObject(idx1: number, idx2: number): void
Swift declaration
func exchangeObject(at idx1: Int, withObjectAt idx2: Int)
method

filter

TypeScript
filter(predicate: NSPredicate): void
Swift declaration
func filter(using predicate: NSPredicate)
init

init

TypeScript
static init(): NSMutableArray
Swift declaration
init()
init

init

TypeScript
static initCapacity(numItems: number): NSMutableArray
Swift declaration
init(capacity numItems: Int)
init

init

TypeScript
static initCoder(coder: NSCoder): (NSMutableArray) | null
Swift declaration
init?(coder: NSCoder)
method

insert

TypeScript
insertAt(anObject: unknown, index: number): void
Swift declaration
func insert(_ anObject: Any, at index: Int)
method

insert

TypeScript
insertAt99530(objects: Array<unknown>, indexes: IndexSet): void
Swift declaration
func insert(_ objects: [Any], at indexes: IndexSet)
method

removeAllObjects

TypeScript
removeAllObjects(): void
Swift declaration
func removeAllObjects()
method

removeLastObject

TypeScript
removeLastObject(): void
Swift declaration
func removeLastObject()
method

remove

TypeScript
remove(anObject: unknown): void
Swift declaration
func remove(_ anObject: Any)
method

remove

TypeScript
removeIn(anObject: unknown, range: SDKHandle): void
Swift declaration
func remove(_ anObject: Any, in range: NSRange)
method

removeObject

TypeScript
removeObjectAt(index: number): void
Swift declaration
func removeObject(at index: Int)
method

removeObject

TypeScript
removeObjectIdenticalTo(anObject: unknown): void
Swift declaration
func removeObject(identicalTo anObject: Any)
method

removeObject

TypeScript
removeObjectIdenticalToIn(anObject: unknown, range: SDKHandle): void
Swift declaration
func removeObject(identicalTo anObject: Any, in range: NSRange)
method

removeObjects

TypeScript
removeObjectsAt(indexes: IndexSet): void
Swift declaration
func removeObjects(at indexes: IndexSet)
method

removeObjects

TypeScript
removeObjectsIn(otherArray: Array<unknown>): void
Swift declaration
func removeObjects(in otherArray: [Any])
method

removeObjects

TypeScript
removeObjectsIn42144(range: SDKHandle): void
Swift declaration
func removeObjects(in range: NSRange)
method

replaceObject

TypeScript
replaceObject(index: number, anObject: unknown): void
Swift declaration
func replaceObject(at index: Int, with anObject: Any)
method

replaceObjects

TypeScript
replaceObjectsAtWith(indexes: IndexSet, objects: Array<unknown>): void
Swift declaration
func replaceObjects(at indexes: IndexSet, with objects: [Any])
method

replaceObjects

TypeScript
replaceObjectsInWithObjectsFrom(range: SDKHandle, otherArray: Array<unknown>): void
Swift declaration
func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any])
method

replaceObjects

TypeScript
replaceObjectsInWithObjectsFromRange(range: SDKHandle, otherArray: Array<unknown>, otherRange: SDKHandle): void
Swift declaration
func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any], range otherRange: NSRange)
method

setArray

TypeScript
setArray(otherArray: Array<unknown>): void
Swift declaration
func setArray(_ otherArray: [Any])
method

sort

TypeScript
sort(sortDescriptors: Array<NSSortDescriptor>): void
Swift declaration
func sort(using sortDescriptors: [NSSortDescriptor])

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSMutableArray.sort(_:context:)

callback cannot propagate synchronous failure

NSMutableArray.sort(using:)

Objective-C selectors cannot cross the bridge.

NSMutableArray.sort(comparator:)

callback cannot propagate synchronous failure

NSMutableArray.sort(options:usingComparator:)

callback cannot propagate synchronous failure

All Foundation types →