Re: new class
Re: new class
- Subject: Re: new class
- From: "Alan Smith" <email@hidden>
- Date: Fri, 21 Sep 2007 07:53:59 -0400
Hi,
You retain an object when you want to have reference to it later. For
example, to set an ivar you do something like this:
- (void)setString:(NSString*)string
{
[_string release];
_string = [string retain];
}
Hope this helps and isn't confusing.
Peace, Alan
--
My blog: cocoalatte.info
// Things I've said -------------------------
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________
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