Re: Re: Memory management question (passing objects to method)
Re: Re: Memory management question (passing objects to method)
- Subject: Re: Re: Memory management question (passing objects to method)
- From: Conor Dearden <email@hidden>
- Date: Wed, 02 Mar 2005 00:48:33 +0100
Also if you release something and not immediately assign it a value, make
sure to assign it an intrim value of nil. This is so that other release
messages that might be called, don't try to release a non exciting object.
Clean programming, avoids hassles.
-(void)doSomething:(NSString *)aVar;
{
[localInstanceOfVar autorelease];
localInstanceOfVar = nil;
}
_______________________________________________
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