Quote:
Originally Posted by farhadf
What would happen in the second case? Would it get a retain count of 2 upon assignment, then get stuck with a count of 1 afterward the dealloc?
|
Quote:
Originally Posted by RLScott
You've got it exactly right!
|
Quote:
Originally Posted by jsd
No he doesn't. Back to Cocoa memory management school for both of you!
|
Hmm... I believe the "second case" is the one quoted below, so unless I'm missing something, I think the "you've got it exactly right" assessment is indeed correct.
Quote:
Originally Posted by farhadf
Code:
self.navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
|