In Java I have a class like this:
public interface Test {
public final static String TAG = "Tag";
}
And other classes are able to implement this Interface and use the declared variables in my interface!
Now I want to do the same thing in Objective C and i found Protocols and tried it like this:
@protocol Test <NSObject>
NSString *const TAG = @"Tag";
@end
But that didn't work! What's the correct way?!
UPDATE:
That Question here is exactly what i am looking for:
how to do it on objective-c: extending protocol and interface like in java
But there´s no proper answer!