Quote:
Originally Posted by BrianSlick
What you are missing is a good read of my properties thread. Go read it.
And you can't rely on retainCount, particularly if the object should be gone.
|
Thanks so much for taking the time. Thanks for the heads up about your
fine properties page. I had never before seen code for a setter such
as produces by @synthesize. I assumed that the retain/release protocol
had to be coded if you wanted it. All is clear now.
- (void)setMyArrayInstanceVariable: (NSArray *)anArray
{
[myArrayInstanceVariable release];
[anArray retain];
myArrayInstanceVariable = anArray;
}