NSMutableArray(FunkyNilStoring)
@interface NSMutableArray <ObjectType>
(FunkyNilStoring) @end
This is a category on NSMutableArray to convert the current set into a nil-storing collection.
See
Immutable counterpartNSArray(FunkyNilStoring)
-
This method converts the regular NSMutableArray into a nil-storing collection, with the same content.
See
Immutable counterpart-[NSArray(FunkyNilStoring) nilStoring]Declaration
Objective-C
- (FunkyNilStoringNSMutableArray *)nilStoring;Return Value
A nil-storing NSMutableArray (a.k.a.
FunkyNilStoringNSMutableArray) with the same content. -
This method creates a new nil-storing mutable collection.
See
Immutable counterpart+[NSArray(FunkyNilStoring) nilStoringArray]Declaration
Objective-C
+ (FunkyNilStoringNSMutableArray *)nilStoringArray;Return Value
A nil-storing NSMutableArray (a.k.a.
FunkyNilStoringNSMutableArray). -
This method creates a new nil-storing mutable collection by providing its capacity.
Declaration
Objective-C
+ (FunkyNilStoringNSMutableArray *)nilStoringArrayWithCapacity: (NSUInteger)capacity;Parameters
capacityThe desired capacity of the collection
Return Value
A nil-storing NSMutableArray (a.k.a.
FunkyNilStoringNSMutableArray) with the givencapacity. -
This method creates a new nil-storing collection, containing the given object parameter.
See
Immutable counterpart+[NSArray(FunkyNilStoring) nilStoringArrayWithObject:]Declaration
Objective-C
+ (FunkyNilStoringNSMutableArray *)nilStoringArrayWithObject:(ObjectType)object;Parameters
objectThe object parameter intended to be stored in the collection
Return Value
A nil-storing NSArray (a.k.a.
FunkyNilStoringNSMutableArray). -
This method creates a new nil-storing collection, containing the original content of the passed array parameter.
See
Immutable counterpart+[NSArray(FunkyNilStoring) nilStoringArrayWithArray:]Declaration
Objective-C
+ (FunkyNilStoringNSMutableArray *)nilStoringArrayWithArray: (NSArray<ObjectType> *)array;Parameters
arrayThe items intended to be stored in the collection
Return Value
A nil-storing NSArray (a.k.a.
FunkyNilStoringNSMutableArray).
View on GitHub
Install in Dash
NSMutableArray(FunkyNilStoring) Category Reference