Possible Duplicate:
When to use self on class properties?
Can someone tell me when to use the self. prefix and when it is unnecessary?
I have a UINavigationController set up in MainWindow.xib and an IBOutlet known as navController linked to it. In my didFinishLaunchingWithOptions method I have linked navController to my window like this:
self.window.rootViewController = navController;
In some tutorials I have seen, the above line is written as such:
self.window.rootViewController = self.navController;
Is there a difference? When does one need to prefix something with self.?
Many thanks.