Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTimeZone and Abstract Classes



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.