I started using groups in Xcode the same way I use packages in Java or namespaces in C++, even though groups have no effect on the language.
Then I discovered Smart Groups and realised that it's sort of pointless to have my code neatly organised in "folders".
Do you use groups? If so, how and why?
Groups are just an organisational tool, and you can use them in the way that is most logical to you.
Often developers will put their Model, View and Controller classes in separate groups. You might also want to put header files in their own group to reduce clutter.
I create a group for "utility" classes like categories, and a group for each main component of the application, for instance "Inspector" or "Preview". In those groups, the classes are further organised into Model, View and Controller groups.
It's up to you though, just do whatever feels natural.
If you're using unit tests, these can go in their own group as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With