Re: NSCalendar dateByAddingComponents: yields inconsistent results
Re: NSCalendar dateByAddingComponents: yields inconsistent results
- Subject: Re: NSCalendar dateByAddingComponents: yields inconsistent results
- From: Jim Thomason <email@hidden>
- Date: Sat, 19 Feb 2011 13:39:13 -0600
> Is this method called from different threads? NSCalendar is
> thread-unsafe (not to be shared across threads):
Gaaah. Yes, that's exactly it. I'm glad I tracked the issues with
gmtCalendar and posted the method.
I re-wrote it to use the threadDictionary instead of a static and all
my problems magically went away. 4 hours of my life I'd like back.
Many thanks,
-Jim....
_______________________________________________
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