Hello, I want to add an Object to a NSMutableDictionary: if(!parsedClasses) parsedClasses = [[NSMutableDictionary alloc] initWithObjectsAndKeys:oneClass,[oneClass objectAtIndex:0],nil]; else [parsedClasses setObject:[oneClass retain] forKey:[oneClass objectAtIndex:0]];
After this I remove all objects and keys from the NSMutableArray oneClass to fill it again with other objects. [oneClass removeAllObjects]; When I try to access the the objects of parsedClass I see that every object is nil. What happens after I adding an oneClass MutableArray Object to the parsedClasses MutableDictionary and how can I preserve the oneClass objects in parsedClasses after removing all objects? Dominic _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com