Objective-C iPhone - NSMutableArray addobject becomes immediately out of scope.

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-04-24T21:06:41Z Indexed on 2010/04/24 21:13 UTC
Read the original article Hit count: 683

ok. I have a really odd and mind boggling problem. I have two class files, both of which are NSObject inheritors. The series of code is as follows

CustomClass *obj;
obj = [[CustomClass alloc] init];
[myArray addObject:obj]; <--------Immediately after this line if I hover over the array it shows it as having 1 object that is out of scope.

If I hover over both objects they both have what look to be initialized memory locations so I really have no idea what is going on here. Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about variable-scope