@implementation GroupedInexedViewController
{
NSDictionary *names;
}
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *path = [[NSBundle mainBundle] pathForResource:@"PropertyList"
ofType:@"plist"];
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
names = dict;
[dict release];
}
'dict'の割り当て解除は'names'に影響しますか?つまり、「名前」の割り当ても解除されますか?私は別の投稿でそれが悪い習慣だと見ましたか?しかし、なぜ?
編集:ARCは無効になっています。