• 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
Re: Need to override +(Class) class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to override +(Class) class?


  • Subject: Re: Need to override +(Class) class?
  • From: Andrew Farmer <email@hidden>
  • Date: Sat, 27 Sep 2008 19:59:32 -0700

On 27 Sep 08, at 19:38, Dave DeLong wrote:
I'm building an app, and I've got a bunch of interface object definitions called "InputElements". There are a couple subclasses, such as InputElementButton and InputElementSlider.
<snip>
When I try to compile, I'm getting two errors:

 "_OBJC_CLASS_$_InputViewSlider", referenced from:
     __objc_classrefs__DATA@0 in CosMouseViewController.o
 "_OBJC_CLASS_$_InputViewButton", referenced from:
     __objc_classrefs__DATA@0 in CosMouseViewController.o

This error appears to indicate that the InputViewSlider and InputViewButton classes are not defined in your application. If you haven't written them yet, you may need to stub them out for your code to work.


My question is, do I need to override the +(Class) class method for each InputElement subclass, and if so how do I make a Class object?

Leave -[NSObject class] alone. Overriding it will probably lead to all sorts of crazy misbehavior.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Need to override +(Class) class?
      • From: Dave DeLong <email@hidden>
References: 
 >Need to override +(Class) class? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Need to override +(Class) class?
  • Next by Date: Re: Need to override +(Class) class?
  • Previous by thread: Re: Need to override +(Class) class?
  • Next by thread: Re: Need to override +(Class) class?
  • Index(es):
    • Date
    • Thread