Yet another memory management question
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