NSDictionary(FunkyNilTolerant)
@interface NSDictionary <__covariant KeyType, __covariant ObjectType>
(FunkyNilTolerant) @end
This is a category on NSDictionary to convert the current set into a nil-tolerant collection.
See
Mutable counterpartNSMutableDictionary(FunkyNilTolerant)
-
This method converts the regular NSDictionary into a nil-tolerant collection, with the same content.
See
Mutable counterpart-[NSMutableDictionary(FunkyNilTolerant) nilTolerant]
Declaration
Objective-C
- (FunkyNilTolerantNSDictionary *)nilTolerant;
Return Value
A nil-tolerant NSDictionary (a.k.a.
FunkyNilTolerantNSDictionary
) with the same content. -
This method creates a new nil-tolerant collection.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilTolerant) nilTolerantDictionary]
Declaration
Objective-C
+ (FunkyNilTolerantNSDictionary *)nilTolerantDictionary;
Return Value
A nil-tolerant NSDictionary (a.k.a.
FunkyNilTolerantNSDictionary
). -
This method creates a new nil-tolerant collection, containing the given object parameter under the specified key.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilTolerant) nilTolerantDictionaryWithObject:forKey:]
Declaration
Objective-C
+ (FunkyNilTolerantNSDictionary *) nilTolerantDictionaryWithObject:(ObjectType)object forKey:(id<NSCopying>)key;
Parameters
object
The object to be stored in the collection
key
The key under
object
should be put inReturn Value
A nil-tolerant NSDictionary (a.k.a.
FunkyNilTolerantNSDictionary
). -
This method creates a new nil-tolerant collection, containing the original content of the passed dictionary parameter.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilTolerant) nilTolerantDictionaryWithDictionary:]
Declaration
Objective-C
+ (FunkyNilTolerantNSDictionary *)nilTolerantDictionaryWithDictionary: (NSDictionary<KeyType, ObjectType> *)dictionary;
Return Value
A nil-tolerant NSDictionary (a.k.a.
FunkyNilTolerantNSDictionary
).