• 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: Kieran Kelleher <email@hidden>
  • Date: Tue, 25 Jul 2006 10:02:33 -0400

Great. Thanks Chuck. That is actually what I was doing before I got concerned that I had mistakenly been setting booby traps after noticing the synchronization note in the NumberFormat API.

As always, thanks,

Regards, Kieran

On Jul 24, 2006, at 3:25 PM, Chuck Hill wrote:

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
References: 
 >NumberFormat and thread safety (From: Kieran Kelleher <email@hidden>)
 >Re: NumberFormat and thread safety (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Obtaining Application Instance Number
  • Next by Date: Newbie question about highlighting rows
  • Previous by thread: Re: NumberFormat and thread safety
  • Next by thread: Closing a pop-up window with a history
  • Index(es):
    • Date
    • Thread