• 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: "Philip Q" <email@hidden>
  • Date: Fri, 8 Dec 2006 16:29:23 +1300

On 08/12/06, Matt <email@hidden> wrote:
The only thing I am doing here is to create a date when I init this
controller (in this case it's in the actual controller, I was trying
this way because I was having issues in my app).  There is a single
button just to print out the date stored when clicked.  I get garbage.

AppKit automatically creates an autorelease pool at the start of every event cycle, and releases it at the end. Your date gets released between the two.

Try just using [[NSDate alloc] init] and remember to release it at the end.

-Phil
_______________________________________________

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


References: 
 >NSDate Question (From: Matt <email@hidden>)

  • Prev by Date: Re: NSDate Question
  • Next by Date: Re: NSDate Question
  • Previous by thread: Re: NSDate Question
  • Next by thread: Re: NSDate Question
  • Index(es):
    • Date
    • Thread