FROM : Ben Dougall
DATE : Wed Dec 22 19:19:27 2004
On Wednesday, December 22, 2004, at 04:00 pm, mmalcolm crawford wrote:
>
> On Dec 22, 2004, at 6:00 AM, Ben Dougall wrote:
>
>>>> how can i display particular date elements in the style of the
>>>> user's prefs?
>>> <http://developer.apple.com/documentation/Cocoa/Reference/
>>> Foundation/ObjC_classic/Classes/NSUserDefaults.html>
>>> See, for example, NSDateFormatString
>> sorry to be a thicky but i can't see how that'd get various sets of
>> date elements -- i'm trying to work out how to get a preferred format
>> for different combinations of date elements.
>> how can i get the preferred format for, for example, the full day
>> name(%A) and the day number of month(%e) and the full month name(%B)
>> as the user would want to see those date elements? is there a way to
>> say "what's the preferred format for this combination of el>> %B %A ?" (or other combinations) and get back the format "%A, %e %B"
>> or "%A, %B %e" or whatever depending on how the user would like it --
>> based on the international date pref settings.
>
> Sorry, I misunderstood the question. There isn't a straightforward
> way to do this. If for some reason you can't simply use the user
> defaults, it sounds like you should probably have the user set their
> own preferences for your application.
ok thanks. further thought, just want to check: are the standard date
format strings, in the user's preferred arrangement, available anywhere
somehow? -- that is the actual format strings themselves for the
established usual date formats?
thanks, ben.
DATE : Wed Dec 22 19:19:27 2004
On Wednesday, December 22, 2004, at 04:00 pm, mmalcolm crawford wrote:
>
> On Dec 22, 2004, at 6:00 AM, Ben Dougall wrote:
>
>>>> how can i display particular date elements in the style of the
>>>> user's prefs?
>>> <http://developer.apple.com/documentation/Cocoa/Reference/
>>> Foundation/ObjC_classic/Classes/NSUserDefaults.html>
>>> See, for example, NSDateFormatString
>> sorry to be a thicky but i can't see how that'd get various sets of
>> date elements -- i'm trying to work out how to get a preferred format
>> for different combinations of date elements.
>> how can i get the preferred format for, for example, the full day
>> name(%A) and the day number of month(%e) and the full month name(%B)
>> as the user would want to see those date elements? is there a way to
>> say "what's the preferred format for this combination of el>> %B %A ?" (or other combinations) and get back the format "%A, %e %B"
>> or "%A, %B %e" or whatever depending on how the user would like it --
>> based on the international date pref settings.
>
> Sorry, I misunderstood the question. There isn't a straightforward
> way to do this. If for some reason you can't simply use the user
> defaults, it sounds like you should probably have the user set their
> own preferences for your application.
ok thanks. further thought, just want to check: are the standard date
format strings, in the user's preferred arrangement, available anywhere
somehow? -- that is the actual format strings themselves for the
established usual date formats?
thanks, ben.
| Related mails | Author | Date |
|---|---|---|
| Ben Dougall | Dec 22, 00:33 | |
| Robbie Haertel | Dec 22, 01:32 | |
| mmalcolm crawford | Dec 22, 01:46 | |
| Ben Dougall | Dec 22, 15:00 | |
| mmalcolm crawford | Dec 22, 17:00 | |
| Ben Dougall | Dec 22, 19:19 | |
| Robbie Haertel | Dec 22, 19:38 | |
| mmalcolm crawford | Dec 22, 20:18 | |
| Sean McBride | Dec 27, 07:42 |






Cocoa mail archive

