• 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 + Formatter + Text Field Strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date + Formatter + Text Field Strangeness


  • Subject: Date + Formatter + Text Field Strangeness
  • From: "I. Savant" <email@hidden>
  • Date: Sat, 2 Dec 2006 17:05:55 -0500

List:

I have an application that keeps track of things based on a reference date. For various reasons (one of which has to do with the selected time scale - years, months, days, or time; another is that the NSDatePicker control doesn't work right in 10.4 for my purposes), the editor represents the date with several text fields, one for each component.

For example, I have a field for Year, one for Month, one for Day, and one for Time (in hours, minutes, and seconds). All these text fields use date formatters to display only their component of the date and all are bound to the document's referenceDate key.

  The problem is that:

- When I set the month, then the day, the month changes.
- When I set year, then the month, the year changes.
- When I set the time, then the day, the time changes.
- ... etc.

Does anyone have any idea what in the world is happening here? I'm thoroughly stumped and have been for a week.

--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Date + Formatter + Text Field Strangeness
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: iPhoto like mail composing
  • Next by Date: DiskArbitration & Finder
  • Previous by thread: Re: iPhoto like mail composing
  • Next by thread: Re: Date + Formatter + Text Field Strangeness
  • Index(es):
    • Date
    • Thread