• 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
Yet another memory management question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Yet another memory management question


  • Subject: Yet another memory management question
  • From: DKJ <email@hidden>
  • Date: Sat, 4 Jul 2009 19:39:13 -0700

Is this the right way to do it?

- (void)viewDidLoad
{
   id myObject = [[NSObject alloc] init];
}

- (void)viewDidUnload
{
   [myObject release];
   myObject = nil;
}

- (void)dealloc
{
   [myObject release];
}
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Yet another memory management question
      • From: WT <email@hidden>
  • Prev by Date: Re: Sorting an editable tableView of managed object
  • Next by Date: Re: Optimizing writes of big files for specific hardware?
  • Previous by thread: Re: Can we pass pointer of a class to a function?
  • Next by thread: Re: Yet another memory management question
  • Index(es):
    • Date
    • Thread