Source

MYUtilities / DictObject.m

Diff from to

DictObject.m

 }
 
 - (id) initMutableWithDictionary: (NSDictionary*)dict {
-    Assert(dict);
     self = [super init];
     if (self != nil) {
         _dict = dict ?[dict mutableCopy] :$mdict();
     return self;
 }
 
+- (id) init {
+    return [self initMutableWithDictionary:nil];
+}
+
 - (void) dealloc
 {
     [_dict release];
     return [[[self class] allocWithZone: zone] initMutableWithDictionary: _dict];
 }
 
-@synthesize dictionary=_dict;
+@synthesize dictionary=_dict, isMutable=_mutable;
 
 - (NSMutableDictionary*) mutableDictionary {
     Assert(_mutable, @"Attempt to access mutable dictionary of immutable instance %@", self);