• 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
Re: NSDate Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • NSMenu question
      • From: "Daniel R. Killoran,Ph.D." <email@hidden>
    • Re: NSDate Question
      • From: "Sean McBride" <email@hidden>
References: 
 >NSDate Question (From: Matt <email@hidden>)
 >Re: NSDate Question (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Setting color to an NSView
  • Next by Date: Re: NSDate Question
  • Previous by thread: Re: NSDate Question
  • Next by thread: Re: NSDate Question
  • Index(es):
    • Date
    • Thread