Re: Intelligent date squishing
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