When appropriate to edit main.m


Having worked through the book, I didn’t see this question addressed (may have missed it).

I’m wondering what common practice is when it comes to editing the default main.m file. On one hand I’ve seen discussions such as this one (stackoverflow.com/questions/7998 … plications) on stackoverflow that suggest there is rarely ever a reason to do it. But I have also seen some example tutorial projects (separate from BNR) that do edit main.m .

What is industry standard for today, or is this more a personal preference thing?


You’ll never edit main.m. The only exception I can think of is if you change the name of the AppDelegate class. Say you rename BNRAppDelegate to BNRQuizAppDelegate, you’d need to make sure it is reflected as such in main.m.