Re: NSDate scope question
Re: NSDate scope question
- Subject: Re: NSDate scope question
- From: Cameron Hayne <email@hidden>
- Date: Sat, 4 Nov 2006 08:44:45 -0500
On 4-Nov-06, at 8:33 AM, Dan Lemmon wrote:
This will compile, but fails at runtime and gives the error GDB:
Program received signal: "EXC_BAD_ACCESS". when I step through in
the debugger. It doesn't like any reference to startDate in the
fireTimer: method, unless startDate is set within that method.
I'm new to Cocoa
You aren't retaining 'startDate'
You need to read about memory management in Cocoa.
Start here: http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaFundamentals/index.html
and read the section "The Life Cycle of a Cocoa Object".
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden