Registering some "UIViewControllers" in my app with a "provider" class in their viewDidLoad
The methods will have to do I am just adding them to an NSMutableArray contained in the provider category.
However, I do not want it to keep NSMutableArray from being dealloc'ed to them, and I also want to delete them myself from NSMutableArray in their dealloc methods.
I just added a [self release]
array, and it works, but to avoid crash, try to release they get dealloc'ed I have to remove them before issuing a [self retention]
. It seems that I am doing something wrong with keeping things in my Delco system.
Is there a better way to store these values?
You can not do the same way you want because you have a circular dependency Can not cancel the item that is in any NSARRA.
You will need to remove them from the array clearly on any point in their life cycle, or leave them there and distribute them when they are distributed to the array.
Comments
Post a Comment