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

Re: NSDateFormatter


  • Subject: Re: NSDateFormatter
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 1 Feb 2005 19:05:12 -0800


On Feb 1, 2005, at 6:35 PM, Kevin Ballard wrote:

Make a subclass of NSDateFormatter and override -stringForObjectValue: to check the object - if it's today, then return @"Today", otherwise, return the superclass's implementation.

A friendly plug for localisation -- returning something like

[[[[NSUserDefaults standardUserDefaults] valueForKey:NSThisDayDesignations]
objectAtIndex:0] capitalizedString];


would be better.

mmalc


_______________________________________________ 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: NSDateFormatter
      • From: Kevin Ballard <email@hidden>
References: 
 >NSDateFormatter (From: Bertrand Landry Hetu <email@hidden>)
 >Re: NSDateFormatter (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Beginner Questions
  • Next by Date: PrefPane contents not being displayed
  • Previous by thread: Re: NSDateFormatter
  • Next by thread: Re: NSDateFormatter
  • Index(es):
    • Date
    • Thread