• 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 scope question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSDate scope question (From: Dan Lemmon <email@hidden>)

  • Prev by Date: NSDate scope question
  • Next by Date: Re: Mouse tracking & selection in composite view
  • Previous by thread: NSDate scope question
  • Next by thread: NSPredicate behavior with different stores (CONTAINS vs. LIKE)
  • Index(es):
    • Date
    • Thread