Re: NSTimer and seg faults

2008-03-12 Thread Gregory Short
Thanks everyone! For the relevant documentation, solutions, and explanations. Hopefully next time my question will be a little tougher. ;) -G ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: NSTimer and seg faults

2008-03-12 Thread Hank Heijink (Mailinglists)
You're getting an autoreleased date and autoreleased timer from the methods you call, but you're not retaining either your timer our your date, so they'll both be gone after you leave awakeFromNib. Read the memory management guide for how all this works:

Re: NSTimer and seg faults

2008-03-12 Thread Hamish Allan
Hi Gregory, The method [NSDate date] returns an autoreleased object, which has been dealloced by the time your NSTimer fires. I'd recommend reading the documentation on memory management, starting with: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html Best wi

Re: NSTimer and seg faults

2008-03-12 Thread Andrew Farmer
On 12 Mar 08, at 13:56, Gregory Short wrote: Howdy all, first-time poster here. I'm pretty new to Objective-C and it's associated run-time environment, so I apologize if this is a total newbie question that has been answered before (I couldn't find anything, but I might not know where to lo

NSTimer and seg faults

2008-03-12 Thread Gregory Short
Howdy all, first-time poster here. I'm pretty new to Objective-C and it's associated run-time environment, so I apologize if this is a total newbie question that has been answered before (I couldn't find anything, but I might not know where to look.) My problem is this: I have an NSTimer wh