can this code cause any potential trouble?
@property (nonatomic, retain) NSDictionary *instanceDictionary;
for(int i = 0; i < 50; i++){
self.instanceDictionary = [NSDictionary alloc] init];
}
or without self
for(int i = 0; i < 50; i++){
instanceDictionary = [NSDictionary alloc] init];
}
I came across situations where a instance variable gets "overridden" like this and was wondering if it could cause any memory problems.