• 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
value pattern bindings & date formatter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: appDidFinishLaunching and NSTask
  • Next by Date: Re: NSApplication terminate: behavior
  • Previous by thread: NSSearchField Predicate Failure: Unable to use '<attribute name> == $value' for scalers
  • Next by thread: Screensaver
  • Index(es):
    • Date
    • Thread