• 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: NSCalendar dateByAddingComponents: yields inconsistent results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSCalendar dateByAddingComponents: yields inconsistent results (From: Jim Thomason <email@hidden>)
 >Re: NSCalendar dateByAddingComponents: yields inconsistent results (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: inter-process locks
  • Next by Date: RE: NSComboxBox alternative
  • Previous by thread: Re: NSCalendar dateByAddingComponents: yields inconsistent results
  • Next by thread: -[NSSet containsObject:] returns NO when it should return YES
  • Index(es):
    • Date
    • Thread