With some experience, you will find that most problems in software development have multiple solutions. Often, it's not that one way is better or worse than the other, they are just different ways of doing a similar thing.
Enabling the full screen mode on an Apps main window is one of those things that can be done programmatically (that is in code) or in the .xib
file. At first glance, it would appear that both methods work equally well, but there is one major difference. If we enable full screen mode in program code, rather than in the .xib
file, then the App will not launch in full screen even if the user quits while in full screen mode. We may or may not want that subtle difference in behavior, but we do need to be aware of it and make the correct choice for our needs.