Natural language date DISPLAY
Natural language date DISPLAY
- Subject: Natural language date DISPLAY
- From: J Nozzi <email@hidden>
- Date: Tue, 22 Jun 2004 16:38:26 -0400
List:
I want my newly-bindings-compliant table to show 'pretty' dates like
Mail and Finder. "Today", "Yesterday", or the normal date stamp. I know
that the NSDateFormatter accepts natural language input, but can't
figure out how to make it use natural language for its *display*. The
reverse of "+dateWithNaturalLanguageString:"
I searched the archives awhile using combinations of
"NSDateFormatter", "NSCalendarDate", "natural language", etc. in an
attempt to answer what I feel is a fairly basic question. I found a few
people asking the same question, but no accompanying answers.
It's starting to sink in slowly that I will probably need to write my
own value transformer or something similar but I'm hoping there's a
handy Cocoa trick that I'm missing ... Or perhaps I just don't know
what term to search for in the archives or what part of the
documentation I should be concentrating on.
Can anybody give me a bump in the right direction? I'm almost sure
I'll need to roll my own solution and probably could do so in the time
it'll take for this to post and get a response. It'd be good practice
... but I'm a lazy, lazy man. ;-)
- J
"Dislikes reinventing the wheel."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.