I think there are some code, and some code no.
What happens rewrite?
Reply:
Do you have something they want, when released
Reply:
My understanding is not:
When my composite technology, when a class contains other objects,
Then it must dealloc??
Reply:
dealloc function is generally not recommended to rewrite
Each object in the dealloc method you need to release only need to release out here can be
Reply:
Application should release their own memory, rewrite dealloc, you need to release with the release added on it
Reply:
Naturally be rewritten.
Reply:
Thank complex when natural application memory. So rewriting.
Reply:
Landlord understand? Can elaborate on that? Also, you said composite mean?, Composite classes?
Reply:
Yes, it is a composite class,
Reply:
For example, class A contains class B, A class initialization function, object B will allocate memory, and initialization,
Finally, of course, responsible for dealloc, if not so, memory leaks, or allocate memory B when it is set to autorelease. . Avoiding the manual to release B it.
I do not know that's right, welcome to speak.
No comments:
Post a Comment