I am creating a category over NSDate. It has some useful methods that should not be part of an open interface.
How can I make them private?
I try to use the "anonymous category" trick when creating private methods in a class:
@interface Foo() @property(readwrite, copy) NSString *bar; - (void) superSecretInternalSaucing; @end @implementation Foo @synthesize bar; .... must implement the two methods or compiler will warn .... @end
but it does not work inside another category:
@interface NSDate_Comparing()
What is the best way to have private methods in a category?
source share