- (NSDictionary *)dictionaryByReplacingNullsWithStrings {
constNSMutableDictionary *replaced = [selfmutableCopy];
constid nul = [NSNullnull];
constNSString *blank = @"";
for(NSString *keyin self) {
constid object = [selfobjectForKey:key];
if(object == nul) {
//pointer comparison is way faster than -isKindOfClass:
//since [NSNull null] is a singleton, they'll all point to the same
//location in memory.
[replaced setObject:blank
forKey:key];
}
}
return [replacedcopy];
}