• 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: arbitrary date formats based on user prefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arbitrary date formats based on user prefs


  • Subject: Re: arbitrary date formats based on user prefs
  • From: Robbie Haertel <email@hidden>
  • Date: Tue, 21 Dec 2004 17:32:48 -0700

I would set up an array of NSDictionary where each NSDictionary
contained two entries, one that "Exemplified" a particular "template"
and one that contained the format string corresponding to it.  You
would simply have to hard code this, and then maybe use it as a
datasource to a combobox or single table column to let the user choose
(you would only show the example, but you would only actually care
about the corresponding format).

If you had a ton of free time you could come up with a creative GUI
that allowed creation of such things.

Best,
Robbie


On Tue, 21 Dec 2004 23:33:34 +0000, Ben Dougall <email@hidden> wrote:
> how can i display particular date elements in the style of the user's
> prefs?
>
> eg, say i want to display full day name and day of month number and
> full month name. is there a way to get the user's preferred way of that
> particular set of data? like, i'd prefer to see it as "Saturday, 25
> December" who's format is "%A, %e %B" but other people probably would
> prefer it "Saturday, December 25" and maybe other ways.
>
> how can i find out the user's preferred date format for any particular
> set of date elements?
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >arbitrary date formats based on user prefs (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Strange NSTextField behaviour
  • Next by Date: I need some help with the security framework please WAS: I cant get my helper tool to launch
  • Previous by thread: arbitrary date formats based on user prefs
  • Next by thread: Re: arbitrary date formats based on user prefs
  • Index(es):
    • Date
    • Thread