Cog/Utils/NSDictionary+Optional.h
Christopher Snowhill 01ea0435d0 Metadata: Add helper for optional values
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>
2025-06-20 19:44:00 -07:00

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