I have some methods that I don’t declare in my class’s interface because only code within the class should use them. But the arrangement of my methods generates some “… might not respond to selector …” warnings when methods want to call methods that are implemented below them.
Is there any way I can declare prototypes for these pseudo-private methods in my implementation file so that I don’t get these warnings?
You can use a class extension. I prefer them over categories (for this purpose) because the methods they declare must be implemented in the main
@implementationblock for the corresponding class.You declare a class extension like this: