• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie memory management question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Newbie memory management question
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: NSOpen Panel Default Button Name
  • Next by Date: Re: Newbie memory management question
  • Previous by thread: Re: NSOpen Panel Default Button Name
  • Next by thread: Re: Newbie memory management question
  • Index(es):
    • Date
    • Thread