value pattern bindings & date formatter?
value pattern bindings & date formatter?
- Subject: value pattern bindings & date formatter?
- From: email@hidden
- Date: Fri, 20 Jan 2006 14:31:26 -0800
I have a text field that is bound to a date element of the selected
object. For single selection, without a date formatter attached to
the field, it works fine:
2005-11-24 22:14:38 -0800
When there is a multiple selection, I'd like to the text to show the
range of dates in the objects selected. Without a formatter, the text
that displays is:
2005-10-25 13:23:33 -0700 through 2005-11-24 22:14:38 -0800
I'd like to add date formatting to these so the dates are a little
more manageable. However, I can't figure out how to format the
multiple date version. Currently, if I attach the formatter, my app
crashes on launch with the following error:
2006-01-20 14:25:25.016 Mugshot[14858] An uncaught exception was raised
2006-01-20 14:25:25.017 Mugshot[14858] [<NSTextField 0x365980>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key displayPatternValue1.
2006-01-20 14:25:25.017 Mugshot[14858] *** Uncaught exception:
<NSUnknownKeyException> [<NSTextField 0x365980>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key displayPatternValue1.
If I remove the value pattern bindings, it works, but then I don't
get the multiple selection behavior that I'd like.
Is there a way to have both? Can I put multiple dates in a single
text field and have them formatted correctly?
Thanks,
Blake
_______________________________________________
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