Have you tried any of the properties like calendar (NSCalendar), locale 
(NSLocale) and timeZone (NSTimeZone) ?
Those are what drive much of NSDateFormatter…
By default they probably inherit from the current system settings or whatever 
the app inherits at launch.
Date, time and number formats are generally provided defaults as part of locale 
and calendar in Cocoa and largely via the underlying Unicode CLDR and ICU 
standard open source libraries.
But when you need to provide something that differs from the current user's 
system preferences settings, you can do so.
Example, a locale based on en-US would likely have the Month Day Year 
convention so common in everyday life in the USA.
However, some contexts in the USA use other formats, in such cases, your app 
might want to provide that.

> On Jan 22, 2020, at 11:22, Marco S Hyman via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> On Jan 21, 2020, at 3:04 PM, robmar...@frontiernet.net wrote:
>> 
>> Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in 
>> the xib) and setting its format string to what you want?
> 
> There doesn’t seem to be any way to get the DatePickerCell to use the 
> formatter.  At least not one that I’ve yet to find.  Bummer.
> 
> Marc
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to