what does it mean to create a category like this: @interface myClass () ... @end in the same class’s .m file ? this category may contain methods and properties, why not to add these methods and properties directly in the class’s .h file ?
thank you in advance.
It’s basically a workaround for Objective-C’s lack of private methods. You put classes in there to hide them from users of the class. They can technically still use them (although they’ll get a warning) but if they don’t know about them, they probably won’t.