• 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: Finding all subclasses of a class ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding all subclasses of a class ?


  • Subject: Re: Finding all subclasses of a class ?
  • From: glenn andreas <email@hidden>
  • Date: Thu, 25 Aug 2005 09:53:53 -0500


On Aug 25, 2005, at 9:37 AM, Eric Morand wrote:

Thanks Glenn.


I'm having a compilatin error with this line :

cls = cls->super_class;


"Dereferencing pointer to incomplete type"



In fact, I can call anything on cls (cls->anything for instance), I have the same error.


Make sure to include <objc/objc-class.h>



You should also never NSLog a "raw" variable/expression (i.e., without using a format string) because if it happened to contain a format character, you'll probably crash.

I did not know this ! Thanks for the tip.

Nothing worse than crashes that happen because you add debugging logs!


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finding all subclasses of a class ?
      • From: Eric Morand <email@hidden>
References: 
 >Finding all subclasses of a class ? (From: Eric Morand <email@hidden>)
 >Re: Finding all subclasses of a class ? (From: glenn andreas <email@hidden>)
 >Re: Finding all subclasses of a class ? (From: Eric Morand <email@hidden>)

  • Prev by Date: Manipulating compound file on Mac?
  • Next by Date: Custom Title bars
  • Previous by thread: Re: Finding all subclasses of a class ?
  • Next by thread: Re: Finding all subclasses of a class ?
  • Index(es):
    • Date
    • Thread