• 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: NumberFormat and thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NumberFormat and thread safety


  • Subject: Re: NumberFormat and thread safety
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 24 Jul 2006 12:25:53 -0700

I create one formatter object per format in each application (e.g. long date format, short date format). IIRC the lack of thread safety has to so with the set... methods on Format subclasses. As long as you are not changing the format after the formatter has been created, calls to parse and format should be thread safe.

Chuck


On Jul 24, 2006, at 12:05 PM, Kieran Kelleher wrote:

Commonly used NumberFormatters seem like obvious candidates for using lazily created and cached shared instances, however the superclass java.text.Format is not thread safe and NSNumberFormatter does not specify in the API. Could someone share what strategy they typically use for WO development .... a number formatter instance for each session, for each R-R worker thread, etc.

Regards, Kieran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--
Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NumberFormat and thread safety
      • From: Kieran Kelleher <email@hidden>
    • Re: NumberFormat and thread safety
      • From: Paul Lynch <email@hidden>
References: 
 >NumberFormat and thread safety (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: NumberFormat and thread safety
  • Next by Date: Re: App organization
  • Previous by thread: NumberFormat and thread safety
  • Next by thread: Re: NumberFormat and thread safety
  • Index(es):
    • Date
    • Thread