Re: NSDateFormatter and Display Value bindings
Re: NSDateFormatter and Display Value bindings
- Subject: Re: NSDateFormatter and Display Value bindings
- From: Keary Suska <email@hidden>
- Date: Tue, 02 Sep 2008 09:25:14 -0600
- Thread-topic: NSDateFormatter and Display Value bindings
9/1/08 9:46 PM, also sprach email@hidden:
> I have a label that I want to display the date range for which I am
> displaying data. So, the label would say "July 1, 2008 to September 1,
> 2008" for my QTD numbers. That is simple enough, but when I set the
> display value binding to my startDate and endDate objects' values,
> they display without any formatting. Is it possible to apply an
> NSDateFormatter to a label that utilizes display values? I found this
> message asking the same thing, so it must not be too uncommon a
> question.
Yes, you can apply a formatter to a label field, as it is still just an
NSTextField. Note, however, that the formatter must apply to the *whole*
field. You can't apply a formatter to part of a field (unless it is your own
formatter, programmed to do so).
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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