NSDictionary(FunkyNilStoring)
@interface NSDictionary <__covariant KeyType, __covariant ObjectType>
(FunkyNilStoring) @end
This is a category on NSDictionary to convert the current set into a nil-storing collection.
See
Mutable counterpartNSMutableDictionary(FunkyNilStoring)
-
This method converts the regular NSDictionary into a nil-storing collection, with the same content.
See
Mutable counterpart-[NSMutableDictionary(FunkyNilStoring) nilStoring]
Declaration
Objective-C
- (FunkyNilStoringNSDictionary *)nilStoring;
Return Value
A nil-storing NSDictionary (a.k.a.
FunkyNilStoringNSDictionary
) with the same content. -
This method creates a new nil-storing collection.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilStoring) nilStoringDictionary]
Declaration
Objective-C
+ (FunkyNilStoringNSDictionary *)nilStoringDictionary;
Return Value
A nil-storing NSDictionary (a.k.a.
FunkyNilStoringNSDictionary
). -
This method creates a new nil-storing collection, containing the given object parameter under the specified key.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilStoring) nilStoringDictionaryWithObject:forKey:]
Declaration
Objective-C
+ (FunkyNilStoringNSDictionary *) nilStoringDictionaryWithObject:(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-storing NSDictionary (a.k.a.
FunkyNilStoringNSDictionary
). -
This method creates a new nil-storing collection, containing the original content of the passed dictionary parameter.
See
Mutable counterpart+[NSMutableDictionary(FunkyNilStoring) nilStoringDictionaryWithDictionary:]
Declaration
Objective-C
+ (FunkyNilStoringNSDictionary *)nilStoringDictionaryWithDictionary: (NSDictionary<KeyType, ObjectType> *)dictionary;
Return Value
A nil-storing NSDictionary (a.k.a.
FunkyNilStoringNSDictionary
).