Re: Attack of the Nils!
Re: Attack of the Nils!
- Subject: Re: Attack of the Nils!
- From: Marcel Weiher <email@hidden>
- Date: Mon, 30 Dec 2002 23:51:36 +0100
On Monday, December 30, 2002, at 11:35 Uhr, mw wrote:
On 12/30/02 4:52 PM, "Michael Latta" <email@hidden> wrote:
It really sounds like the variable being referenced in the second
method is not the same as the one in the first method. As an exercise
rename the variable you think is being referenced by the second
method,
and verify you get the expected compile errors. If in fact they are
the same variable, look for any other assignments to that variable.
Remember a released object does not set references to nil, they just
point into garbage.
Michael
But this would be impossible because both of the methods are members
of the
same class,
Not at all. Two instances of the same class are still distinct objects.
and neither method has any private variables that have the name
'controller'. However, I did test your theory, and the pointer was
still
<nil> when it got to -mouseExit. Any other ideas?
1. Make sure that 'self' is the same object in both cases, by
printing its address.
2. Don't use the debugger to check these things, use NSLog()
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.