• 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
Re: NSDateFormatter and Display Value bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDateFormatter and Display Value bindings (From: Jamie Phelps <email@hidden>)

  • Prev by Date: Re: Preference panes and Apple Help
  • Next by Date: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Previous by thread: NSDateFormatter and Display Value bindings
  • Next by thread: Creating movie on background thread
  • Index(es):
    • Date
    • Thread