I tried to insert NSDictionary‘s in a NSMutableDictionary. There is no error but it won’t work, it remains empty.
Here’s my code:
NSMutableDictionary *einnahmen = [[NSMutableDictionary alloc] initWithCapacity:20];
NSArray *objects = [NSArray arrayWithObjects:
name,
[NSNumber numberWithInt: x],
[NSNumber numberWithInt: y],
[NSNumber numberWithInt: z],
nil];
NSArray *keys = [NSArray arrayWithObjects:
@"name",
@"startJahr",
@"zins",
@"entnahmefaehig",
nil];
NSDictionary *entry = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
[einnahmen setObject:entry forKey:@"name"]; //seems not to work
After [einnahmen setObject:entry the Debugger shows this:

I have solved this problem. The following code was in the wrong init-method:
The compiler should show a error.