NSMutableArray ist nach addObject leer

Ich möchte ein Objekt zu einem NSMutableArray hinzufügen:

NSLog(@"Object text: %@", object.text);
NSLog(@"Object: %@", object);
[appdelegate.objects addObject:object];
NSLog(@"Objects array size: %i", [appdelegate.objects count]);

Dies ist die Ausgabe:

Object text: This is the text
Object: <Object: 0x6e762c0>
Objects array size: 0

Wie das möglich ist, füge ich ein Objekt hinzu, in der nächsten Zeile ist es noch leer. DasNSMutableArray ist nichtnil, weil das eine Ausnahme auslösen würde.

Hat jemand eine Vermutung?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage