Re: Initializing an Array
Re: Initializing an Array
- Subject: Re: Initializing an Array
- From: Marcel Weiher <email@hidden>
- Date: Tue, 22 Jan 2002 21:42:22 +0100
On Tuesday, January 22, 2002, at 08:47 , Jeff Galyan wrote:
I didn't think so, but when I wasn't sending retain to the copied
string,
the app would crash on the first call to any method in the class, and
the
debugger showed myString's address as 0x0.
This is clearly NOT caused by the string getting deallocated.
Deallocating an object does not set references to that object to nil.
Ways you might have gotten a nil-pointer:
1.) you passed nil in
2.) you reset the instance var to nil in the meantime
3.) the object that had its inst-var set is not the same one that
you're examining
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.