Re: Finding all subclasses of a class ?
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