• 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: Internationalized Dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internationalized Dates


  • Subject: Re: Internationalized Dates
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 31 Oct 2006 21:12:50 -0700


On Oct 31, 2006, at 8:55 PM, Seth Willits wrote:

I'm trying to have a date drawn in a format to fit the width of a column in a table view. Drawing and determining which to use is obviously easy, the question is, where the heck do you get the formats from?

Unless you must target Panther or earlier, the best thing to do is to use the new-style NSDateFormatters and then just use -setDateStyle: and -setTimeStyle: to build the proper formatter. Doing this gives you a lot more control over formatting than using the NSUserDefaults constants. If you must target Panther or earlier, then you must use the NSUserDefaults constants.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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
  • Follow-Ups:
    • Re: Internationalized Dates
      • From: Seth Willits <email@hidden>
References: 
 >Internationalized Dates (From: Seth Willits <email@hidden>)

  • Prev by Date: Internationalized Dates
  • Next by Date: Re: Internationalized Dates
  • Previous by thread: Internationalized Dates
  • Next by thread: Re: Internationalized Dates
  • Index(es):
    • Date
    • Thread