Re: NSDate Question
Re: NSDate Question
- Subject: Re: NSDate Question
- From: Roland Torres <email@hidden>
- Date: Fri, 8 Dec 2006 09:19:13 -0800
On Dec 8, 2006, at 8:15 AM, Sean McBride wrote:
- (void)setMyDate:(NSDate *)aMyDate
{
if (myDate != aMyDate) {
[myDate release];
myDate = [aMyDate copy];
}
}
Noob question here.
Is doing:
myDate = [aMyDate copy];
preferable to doing:
myDate = [aMyDate retain];
?
Roland
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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