Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!uakari.primate.wisc.edu!indri!pikes!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: Re: Objective C compiler options Message-ID: <130016@gore.com> Date: 31 Aug 89 17:54:26 GMT References: <24042@labrea.Stanford.EDU> Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 22 / comp.sys.next / ali@polya.Stanford.EDU (Ali T. Ozer) / Aug 31, 1989 / > Trying to look at self through gdb can sometimes be confusing & > misleading; "print *someid" might not be correct, depending on the context. > Try using "print *self->isa" to see what class "self" is... If it does > seem like it is TextFieldClass, then try "make clean" and remake, just to > eliminate any problems that might arise from an inconsistency between > the header files and classes. Another thing to do is to make sure that "-O" flag was not used during compilation. If it was, you indeed get the most amusing answers from gdb about anything concerning 'self'... especially in a '+new'-type factory method, after 'self' is assigned the value of an instance (as in "self=[super new];"): the value of 'self' stays unchanged (i.e., poining to the factory), and none of the instance variables are visible. If you are using the Interface Builder and the Makefiles that it generates, just make sure that you do "make debug" instead of just "make". That will compile all files with option "-gg" instead of the usual "-g -O". Jacob -- Jacob Gore Jacob@Gore.Com {nucsrl,boulder}!gore!jacob