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

Re: Intelligent date squishing


  • Subject: Re: Intelligent date squishing
  • From: Zach Wily <email@hidden>
  • Date: Fri, 5 Aug 2005 12:51:06 -0600


On Aug 5, 2005, at 12:41 PM, August Trometer wrote:

Most likely, the dates you're talking about are attributed strings using a paragraph style with NSLineBreakByTruncatingTail.

In Xcode 2.x, you can set a specific data cell for a column and set the Line Break Mode there. I believe this only works with 10.4.

I think he's talking about how the date format actually changes. It goes through the following formats based on decreasing width:


August 2, 2005, 8:31 AM
Aug 2, 2005, 8:31 AM
8/2/05, 8:31 AM
8/2/05

It's pretty cool, and more complex than simply truncating. Mail does it as well.

zach


I'm wondering how the Finder will "Squish" the dates if they are too big to be displayed in the current format. Is this a standard NSDateFormatter functionality or must I implement it myself?

_______________________________________________
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: Intelligent date squishing
      • From: "Theodore H. Smith" <email@hidden>
References: 
 >Intelligent date squishing (From: "Theodore H. Smith" <email@hidden>)
 >Re: Intelligent date squishing (From: August Trometer <email@hidden>)

  • Prev by Date: Menus in a document based application
  • Next by Date: Re: Using C++ AutoPtr within an Obj C file.
  • Previous by thread: Re: Intelligent date squishing
  • Next by thread: Re: Intelligent date squishing
  • Index(es):
    • Date
    • Thread