NSMutableArray
You’re reading documentation from an older version of Swift 6.1.
A symbol with the same signature as this one exists in the latest stable release of Swift 6.1.
class NSMutableArrayYou’re reading documentation from an older version of Swift 6.1.
A symbol with the same signature as this one exists in the latest stable release of Swift 6.1.
class NSMutableArrayimport Foundationclass NSArrayprotocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectableA type that explicitly supplies its own mirror.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol ExpressibleByArrayLiteralA type that can be initialized using an array literal.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol NSCodingThe NSCoding protocol declares the two methods that a class must implement so that instances of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
protocol NSCopyingThe NSCopying protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSMutableCopyingThe NSMutableCopying protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying instead.
protocol NSObjectProtocol : AnyObjectThe NSObjectProtocol groups methods that are fundamental to all Foundation objects.
protocol NSSecureCoding : NSCodingConforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks.
protocol Sequence<Element>A type that provides sequential, iterated access to its elements.
override init() init(capacity numItems: Int) required init(objects: UnsafePointer<AnyObject>?, count: Int) override subscript(idx: Int) -> Any { get set } func add(_ anObject: Any) func addObjects(from otherArray: [Any]) func exchangeObject(at idx1: Int, withObjectAt idx2: Int) func filter(using predicate: NSPredicate) func insert(_ objects: [Any], at indexes: IndexSet) func insert(_ anObject: Any, at index: Int) func remove(_ anObject: Any) func remove(_ anObject: Any, in range: NSRange) func removeAllObjects() func removeLastObject() func removeObject(at index: Int) func removeObject(identicalTo anObject: Any) func removeObject(identicalTo anObject: Any, in range: NSRange) func removeObjects(at indexes: IndexSet) func removeObjects(in range: NSRange) func removeObjects(in otherArray: [Any]) func replaceObject(at index: Int, with anObject: Any) func replaceObjects(at indexes: IndexSet, with objects: [Any]) func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any]) func replaceObjects(in range: NSRange, withObjectsFrom otherArray: [Any], range otherRange: NSRange) func setArray(_ otherArray: [Any]) func sort(_ compare: (Any, Any, UnsafeMutableRawPointer?) -> Int, context: UnsafeMutableRawPointer?) func sort(comparator: (Any, Any) -> ComparisonResult) func sort(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) func sort(using sortDescriptors: [NSSortDescriptor])