Re: NSDateFormatter
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