Re: NSDate Question
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