Add NSDictionary initWithOptionalObjects:forKeys:count: helper, to work around several places that may have been setting nil dictionary valies on placeholder dictionaries. Hopefully this fixes the crash someone logged recently. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
7 lines
217 B
Objective-C
7 lines
217 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface NSDictionary (Optional)
|
|
|
|
+ (NSDictionary *)initWithOptionalObjects:(const id _Nonnull [_Nullable])objects forKeys:(id<NSCopying> const[])keys count:(NSUInteger)cnt;
|
|
|
|
@end
|