So, I redefine the dealloc method because the object is a composite object consisting of one other object.
I originally had this dealloc method:
-(id) dealloc;
{
[rect release];
[super dealloc];
return self;
}
After looking in the book, I saw another answer:
{
[rect release];
return [super dealloc];
}
just wondering if both will work the same.
Thanks,
Nick
source
share