• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTimeZone and Abstract Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: newbie question about PRINTING
  • Next by Date: Dock menus for minimized windows.
  • Previous by thread: Printing a view is printing the view's window instead
  • Next by thread: Re: NSTimeZone and Abstract Classes
  • Index(es):
    • Date
    • Thread