• 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: "Theodore H. Smith" <email@hidden>
  • Date: Fri, 5 Aug 2005 23:51:57 +0100


On 5 Aug 2005, at 19:51, Zach Wily wrote:

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.

I take it this behaviour isn't "for free"? I probably have to do the width detection myself, right?
_______________________________________________
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
References: 
 >Intelligent date squishing (From: "Theodore H. Smith" <email@hidden>)
 >Re: Intelligent date squishing (From: August Trometer <email@hidden>)
 >Re: Intelligent date squishing (From: Zach Wily <email@hidden>)

  • Prev by Date: Re: Fullscreen window after hiding Dock works in 10.4 but not 10. 3
  • Next by Date: Re: Hiding the disclosure triangle in NSOutlineView
  • Previous by thread: Re: Intelligent date squishing
  • Next by thread: Re: Intelligent date squishing
  • Index(es):
    • Date
    • Thread