Re: NSDate value set in one method, vanishes when accessed from another
Re: NSDate value set in one method, vanishes when accessed from another
- Subject: Re: NSDate value set in one method, vanishes when accessed from another
- From: "Glenn L. Austin" <email@hidden>
- Date: Thu, 19 Apr 2012 15:59:33 -0700
On Apr 19, 2012, at 10:43 AM, The Rhythmic wrote:
> Now, within a method, am setting this value to the date from a DatePicker
> as:
>
> * fromDate = [datePicker date];*
From that code, you're getting an autoreleased object from datePicker. If you want to keep it around, you need to retain or copy it into fromDate.
_______________________________________________
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