I have a class that I want to split across multiple files. I tried using categories, but can't figure out how to make it work.
My class is named UserManager
and I want to create UserManager+Amazon
and UserManager+Facebook
.
The problem is that I do need to access private properties and/or methods in UserManager+Amazon
that are implemented in UserManager+Facebook
, and vice-versa.
How can I extract methods outside the main UserManager.m
file, while maintaining the access to private stuff?