NSTimeZone and Abstract Classes
NSTimeZone and Abstract Classes
- Subject: NSTimeZone and Abstract Classes
- From: Joe Muscara <email@hidden>
- Date: Tue, 30 Oct 2001 14:50:59 -0600
I've been beating my head against the wall for a couple of days now. I
thought I understood the concept of abstract classes, and I've reread
the thread about abstract classes from this summer in case anything was
helpful (it wasn't).
I've defined ClockieTimeZone as a subclass of NSTimeZone. It's a pretty
minimal implementation, with the intent of adding one variable and a
method or two. Otherwise, I just want the functionality of NSTimeZone
(name, description, isDaylightSavingsTime, etc.). Unfortunately, every
time I send a ClockieTimeZone instance a message that includes a
selector that's in NSTimeZone, I get an error in the Console like the
one below. I even get these when initWithName is called. Can anyone tell
me what I've obviously overlooked?
"-name only defined for abstract class. Define -[ClockieTimeZone name]!"
Thanks.
Joe