NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch. It is Available in OS X v10.0 and later
NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch. Its immutable variant is NSArray (nsarray), which is more efficient for memory and thread-safe than the mutable variant.
NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch.
The NSMutableArray class declares the programmatic interface to objects that manage a modifiable array of objects and “toll-free bridged” with its Core Foundation.
The reason to subclass NSMutableArray
from NSArray
is this class does well what it is designed to do—maintain a mutable, ordered collection of objects. But there are situations where a custom NSArray object might come in handy.
Resources:
Question on NSMutableArray:
1.objective C: use NSMutableArray in different classes
2.How to sort an NSMutableArray with custom objects in it?
3.How do I convert NSMutableArray to NSArray?
Examples: