• 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
DateFormatter in a table?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DateFormatter in a table?


  • Subject: DateFormatter in a table?
  • From: Keith Pritchard <email@hidden>
  • Date: Sun, 29 Sep 2002 03:13:03 +0100

Hi all,

Just want to accept dates of approx the format Sat, 16 Mar 2002
10:44:24 -0700 and have dateformatter format them all to say,
16/03/2002

I setup a textfield and got it working fine in there just with IB and a
format string... no problem.

So went to my app which has an outlineview with 3 columns. clicked on
the header of the third column and inserted a dataformatter in IB.
Could change the string and see the sample data in IB in the table
change to be the right format. So far so good.

When I run the app though, that column stays blank. (other 2 columns
work fine still). Remove the formatter and the raw date goes in no
problem.

To help debug, I set objectValueForTableColumn to return "12/12/2002"
when asked for data for that column... knowing it was a valid date I
could easily setup for... still blank (tried turning on natural
language and returning yesterday.. same result).

What am I missing?

Thanks all,
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Displaying Current Time using Cocoa
  • Next by Date: NSBrowser's reloadColumn: question
  • Previous by thread: Re: Displaying Current Time using Cocoa
  • Next by thread: Re: DateFormatter in a table?
  • Index(es):
    • Date
    • Thread