Problem when subClassing NSDate
Posted
by iFloh
on Stack Overflow
See other posts from Stack Overflow
or by iFloh
Published on 2010-04-17T04:49:22Z
Indexed on
2010/04/17
4:53 UTC
Read the original article
Hit count: 244
Hi,
I first time tried to subClassed an NSDate to give it 2 methods that I need. Compiles fine, but in runtime I try to access it I get an error.
Lets say I just want the current date which is unmodified in the subClass:
[myNSDate date];
I get the error
-[NSDate initWithTimeIntervalSinceReferenceDate:]: method only defined for
abstract class. Define -[myNSDate initWithTimeIntervalSinceReferenceDate:]!
what is different?
© Stack Overflow or respective owner