KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to add an object into an NSMutableArray: NSLog(@"Object text: %@", object.text); NSLog(@"Object: %@", object); [appdelegate.objects addObject:object]; NSLog(@"Objects array size: %i", [appdelegate.objects count]); This is the output: Object text: This is the text Object: <Object: 0x6e762c0> Objects array size: 0 How is this possible, I add an object, on the next line, it is still empty. The NSMutableArray is not nil , because that would raise an exception. Anybody a guess?
Tags (comma-separated)
Save Edits
Cancel