Recently I got up in a discussion with someone about whenether or not to include NSManagedObjects into the iOS Prefix file (.pch)
I did that because it will speed up development time (e.g syntax completion works for all model names etc, build times are a bit faster)
Currently we have ~70 different tables (and thus ~70 different NSManagedObject classes) I made a shell script that will list these files and create a header called AllModels.h that will import those tables. Then I include that as a #import in the pch file. So now, we can use all of the tables in our entire project.
He said that we cannot have that anymore because it's a bad practice and I disagree. I do not know if I am right or wrong actually. In my mind yes I feel am right, but I try to get a bigger view over here about this situation, so I would like to hear from you guys, what's better? Including the NSManagedObject you need in the header of the file you are working in, or include them at once in the pch file?
Thanks for your time! :)