• 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
Natural language date DISPLAY
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Natural language date DISPLAY
      • From: Jon Hull <email@hidden>
  • Prev by Date: Re: Authenticating without UI
  • Next by Date: Re: How do I get a simple display pattern to work?
  • Previous by thread: Re: Reading value of a checkbox in an NSTable
  • Next by thread: Re: Natural language date DISPLAY
  • Index(es):
    • Date
    • Thread