Le 08-01-28 à 13:56, Mr. Pierre Frisch a écrit :

Thanks, but I think it would be going backwards. The current NSTimestampFormatter is already a thin layer on top of SimpleDateFormat using NSTimeZone instead of TimeZone with some bizarre adjustments to make it behave like the ObjC formatter. Some of the format characters are just ignored as they do not have a correspondent in SimpleDateFormat. The next version of WebObjects will not use NSTimestampFormatter internally. You can write a translator but you are going to incur a performance penalty for very little gain. Don't forget that you should not cache format as they are not re-entrant.

Most WO developer do not embed their format string in every component anyway it is way too cumbersome when the customer invariably ask for a change, we all push them in cover methods in WOComponent so moving away from the old format should not be that difficult.

elvis:~/Migration/ConteneurCVS probert$ find . -name '*.wod' -exec grep "dateformat" {} \; | wc -l
    1348


Cheers

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 28, 2008, at 9:30, Mike Schrag wrote:

I mean for Pierre, inside WO, or Wonder with a class replacement if it ends up going away completely ...

ms

On Jan 28, 2008, at 12:18 PM, Anjo Krank wrote:

Not really. You'd need to get it plugged into the system, see if it works with all the components and so on. So this is not an hour or two of work.

Cheers, Anjo

Am 28.01.2008 um 18:05 schrieb Mike Schrag:

It should be really easy to write a new NSTimestampFormatter that just converts old format to SimpleDateFormat format internally, right? So NSTimestampFormatter could be deprecated but not gone. I actually wrote this code last year but I think I ended up tossing it, and I don't recall why. No idea where it ran off to, but it was maybe an hours worth of code, and another that because you have to keep looking back and forth between the two references. IIRC there were two %things that didn't have an equivalent in SimpleDateFormat.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre% 40apple.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/probert%40os.ca

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to