On Mar 17, 2012, at 6:10 PM, G S wrote:

> I create another NSDate, on the stack, to hold "now" for use within that
> function.  Do I need to retain that too?

Er, sorry, I didn’t read this thoroughly last time. No, if you’re just using it 
inside a method, and not storing it to an instance variable, you don’t have to 
retain it. The object is autoreleased, which means it won’t get released until 
the next iteration of the run loop.

Charles
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to