···11+#import <DiskImages/NSDictionary+BetterAccessors.h>
22+#import <Foundation/NSString.h>
33+44+// why is this in the DiskImages framework, of all places?
55+// and why does Xcode depend on it?!
66+77+@implementation NSDictionary (BetterAccessors)
88+99+- (id)stringForKey: (id)key
1010+{
1111+ id object = [self objectForKey: key];
1212+ if ([object isKindOfClass: [NSString class]]) {
1313+ return object;
1414+ }
1515+ return nil;
1616+}
1717+1818+@end