• 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
Date Column Resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date Column Resizing


  • Subject: Date Column Resizing
  • From: Seth Willits <email@hidden>
  • Date: Sun, 17 Jul 2005 20:05:05 -0700

I wrote some naaasty code that works:
http://nomorepasting.com/paste.php?pasteID=44547

But it has three flaws in rapidly decreasing priority:
1) It's non-localized. 10.4 has nice localized constants in NSDateFormatter but my app needs to work on 10.3. NSUserDefaults has some localized date formats (NSDateFormatString, NSShortDateFormatString) but they aren't nearly as pretty as what I'm doing in the code above (which is copy Finder's appearance).


2) I have to redraw the view at the end of the method because this notification happens _after_ the view has been drawn (what use is that? o_O)

3) It's kind of ugly code.


I'm trying to duplicate the behavior of Finder where the date columns resize to fit their width, preferably live (I don't see how to do this with the standard classes). The code above accomplishes most of that, but not being localized is a major knife in the back.



-- Seth Willits

_______________________________________________
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


  • Prev by Date: Re: Problems with a chain of bindings and search field
  • Next by Date: CoreData & Singleton pattern using NSObjectController
  • Previous by thread: Re: Problems with a chain of bindings and search field
  • Next by thread: CoreData & Singleton pattern using NSObjectController
  • Index(es):
    • Date
    • Thread