• 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: Jamie Hardt <email@hidden>
  • Date: Sat, 27 Sep 2008 19:53:06 -0700

Not sure exactly what your problem is, have you tried isMemberOfClass: instead of isKindOfClass:?

the is*OfClass: methods have certain... dangers. You might try testing the given object to see if they respond to slider selectors versus button selectors, and discriminate in that way.

On Sep 27, 2008, at 7:38 PM, Dave DeLong wrote:

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


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?

Jamie Hardt The Sound Department http://www.soundepartment.com/ http://www.imdb.com/name/nm0362504/

_______________________________________________

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


References: 
 >Need to override +(Class) class? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: How to get the current screen resolution on Mac
  • Next by Date: Re: Need to override +(Class) class?
  • Previous by thread: Need to override +(Class) class?
  • Next by thread: Re: Need to override +(Class) class?
  • Index(es):
    • Date
    • Thread