PDA

View Full Version : Format date in simple core data program?




kellah
Apr 7, 2008, 11:13 PM
I basically followed this guide to make a simple core data program:

http://www.macgeekery.com/gspot/2005-40/core_data_as_a_cheap_database

I'm happy with it and it works great. However, I cannot find out how to change the format of the date displayed in the table. Where would I do this?

Thanks!



kainjow
Apr 7, 2008, 11:30 PM
NSDateFormatter is your friend. Drag a "Date Formatter" object from the Library window in IB over the column you want to customize.

kellah
Apr 7, 2008, 11:43 PM
NSDateFormatter is your friend. Drag a "Date Formatter" object from the Library window in IB over the column you want to customize.

Thank you for the quick response. Wow that was easy. I'm impressed with Xcode and Interface Builder!