Date + Formatter + Text Field Strangeness
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