[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: class initialization problem ?

From: David Ayers
Subject: Re: class initialization problem ?
Date: Fri, 22 Aug 2003 20:54:41 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507

Manuel Guesdon wrote:

Hi David,

Thank you for the explanation.
At the begining my problem was with GSObjCIsKindOf wich wasn't returning YES 
when I didn't Log the class before (more
precisely now with your help, when the class has not received a message before).

GSObjCIsKindOf  use class_get_super_class and that's why I've got the problem.

So I think there's a bug in GSObjCIsKindOf as it doesn't return the good result 
under this case.
Using GSObjCSuper doesn't seems t to be a solution as it call 

Is there a way to know if a class is initialized and force initialization in GSObjCSuper and GSObjCIsKindOf if it is not ?

Hmm. and class_superclass_of_class isn't public :-/, I don't have time right now, but I'll look into the runtime's as soon as I can, to see what we can do in GSObjCSuper to insure the reurn value is an intialized class. I've just posted a patch to make -base use many of our GSObjCRuntime functions. So if we can fix GSObjCSuper, the rest should fall into place.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]