Does different iVar name change retain count when used with property
- by russell
Here is 2 code snapshot-
Class A:NSObject
{
NSMutableArray *a;
}
@property (retain) NSMutableArray *a;
@implementation
@synthesize a;
-(id)init
{
if(self=[super init])
{
a=[[NSMutableArray alloc] init];
}
}
@end
Class A:NSObject
{
NSMutableArray *_a;
}
@property (retain) NSMutableArray *a;…