bug-gnustep
[Top][All Lists]
Advanced

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

class initialization problem ?


From: Manuel Guesdon
Subject: class initialization problem ?
Date: Thu, 21 Aug 2003 12:29:29 +0200 (CEST)

Hi,

I've found a very very stange thing:

I wanted to find if class aClass inherit from another class bClass.
When NSLog-ing class, this works, without it doesn't !

Here are some traces:
aClass=0x4156e320                                                               
   (aClass address)

class_get_super_class(aClass)=0x4156d782                                (aClass 
superclass adress)
class_get_super_class(class_get_super_class(aClass))=(null)        (aClass 
superclass superclass  adress. It shouldn't
be null !!!!)
        
aClass=MyClassName                                                              
(result of NSLog(@"aClass=%@",aClass))

aClass=0x4156e320                                                               
  (aClass address; same as 1st time)
class_get_super_class(aClass)=0x41487400                                (aClass 
superclass adress. It has changed !!)
class_get_super_class(class_get_super_class(aClass))=0x406fcf40 (aClass 
superclass superclass  adress. It's now correct !)!)


Any idea ?

Manuels
-- 
______________________________________________________________________
Manuel Guesdon - ORANGE CONCEPT <mguesdon@orange-concept.com>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0997  -  Fax: +33 1 4940 0998





reply via email to

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