NSArray(FunkyNilTolerant)
@interface NSArray <__covariant ObjectType>
(FunkyNilTolerant) @end
This is a category on NSArray to convert the current set into a nil-tolerant collection.
See
Mutable counterpartNSMutableArray(FunkyNilTolerant)
-
This method converts the regular NSArray into a nil-tolerant collection, with the same content.
See
Mutable counterpart-[NSMutableArray(FunkyNilTolerant) nilTolerant]
Declaration
Objective-C
- (FunkyNilTolerantNSArray *)nilTolerant;
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSArray
) with the same content. -
This method creates a new nil-tolerant collection.
See
Mutable counterpart+[NSMutableArray(FunkyNilTolerant) nilTolerantArray]
Declaration
Objective-C
+ (FunkyNilTolerantNSArray *)nilTolerantArray;
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSArray
). -
This method creates a new nil-tolerant collection, containing the given object parameter.
See
Mutable counterpart+[NSMutableArray(FunkyNilTolerant) nilTolerantArrayWithObject:]
Declaration
Objective-C
+ (FunkyNilTolerantNSArray *)nilTolerantArrayWithObject:(ObjectType)object;
Parameters
object
The object parameter intended to be stored in the collection
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSArray
). -
This method creates a new nil-tolerant collection, containing the original content of the passed array parameter.
See
Mutable counterpart+[NSMutableArray(FunkyNilTolerant) nilTolerantArrayWithArray:]
Declaration
Objective-C
+ (FunkyNilTolerantNSArray *)nilTolerantArrayWithArray: (NSArray<ObjectType> *)array;
Parameters
array
The items intended to be stored in the collection
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSArray
).