Newbie memory management question
Newbie memory management question
- Subject: Newbie memory management question
- From: Aaron Boothello <email@hidden>
- Date: Mon, 4 Oct 2004 11:19:42 +0800
Ive been tuning my app recently and noticed that i had no memory
management. So i started reading up on all the jargon (release,
autorelease, alloc,dealloc,etc).
The objects in my app are of this sort:
-simpleModel
-complexModel
-superModel
the superModel is an array of the simple & complex models (allocated
dynamically)
Now how do i free up the memory a superModel is taking up ?
do i write a '-(void) dealloc' in the superModel class definition and
then just do something like '[simpleModel[x] release]' or
'[simpleModel[x] dealloc]' (and then write a dealloc for the
simpleModels as well ?
Thanks,
Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden