I first tried subClassed NSDate to give it 2 methods that I need. It compiles fine, but at runtime I try to access it. I get an error message.
Suppose I just want the current date to not be changed in a subclass:
[myNSDate date]
I get an error
-[NSDate initWithTimeIntervalSinceReferenceDate:]: method only defined for abstract class. Define -[myNSDate initWithTimeIntervalSinceReferenceDate:]!
what else?
source share