RE: Time & Date Preferences?
RE: Time & Date Preferences?
- Subject: RE: Time & Date Preferences?
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 2 Jun 2003 14:57:16 -0400
>
> But that does not change the settings for the
>
> "locale" of the United States, which seems to be what you get with %x
>
> (if I
>
> remember it correctly).
>
>
So the default locale is _always_ US english? I think it really should
>
default to the systems settings.
No, I didn't say that. The user picks the locale, and then can make further
choices to modify the date and time format. I'm just saying there may be a
difference between what the locale specifies (i.e., the default values for
Germany or the U.S.) and what the user specifies. But it doesn't make much
sense that such a difference would be reflected in %x and %X.
>
>
Anyway. If I wanted to change the locale, I would use [NSUserDefaults
>
standardUserDefaults] as the 'locale dictionary', right?
I don't think so. +standardUserDefaults does not return a dictionary, which
is what the locale argument is supposed to be.
>
>
Seems like the date and time formatting is still broken somehow.
That's seems true for %x/%X. I think it's a much more reliable to get the
format string by giving the standardUserDefaults object the appropriate key
(NSShortDateFormatString, NSShortTimeDateFormatString,
NSTimeDateFormatString, or NSTimeFormatString).
Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.