Re: Getting the NSDateFormatter strings from the user's preferences
Re: Getting the NSDateFormatter strings from the user's preferences
- Subject: Re: Getting the NSDateFormatter strings from the user's preferences
- From: Andreas Mayer <email@hidden>
- Date: Thu, 19 May 2005 03:50:00 +0200
Am 19. Mai 2005 um 01:14 Uhr schrieb James Bucanek:
Here's my second, annoying, question for the day. Where I can get
the date and time formatting strings set by the user in the
International Preferences Pane?
NSDateFormatter
setDateStyle:
- (void)setDateStyle:(NSDateFormatterStyle)style
Sets the date style of the receiver to style. For possible values,
see “Constants”.
Availability
Available in Mac OS X version 10.4 and later.
Constants
Date and Time Format Styles
NSDateFormatterNoStyle
Specifies no style. Equal to kCFDateFormatterNoStyle. Available in
Mac OS X version 10.4 and later.
NSDateFormatterShortStyle
Specifies a short style, typically numeric only, such as “11/23/37”
or “3:30pm”. Equal to kCFDateFormatterShortStyle. Available in Mac OS
X version 10.4 and later.
NSDateFormatterMediumStyle
Specifies a medium style, typically with abbreviated text, such as
“Nov 23, 1937”. Equal to kCFDateFormatterMediumStyle. Available in
Mac OS X version 10.4 and later.
NSDateFormatterLongStyle
Specifies a long style, typically with full text, such as “November
23, 1937” or “3:30:32pm”. Equal to kCFDateFormatterLongStyle.
Available in Mac OS X version 10.4 and later.
NSDateFormatterFullStyle
Specifies a full style with complete details, such as “Tuesday, April
12, 1952 AD” or “3:30:42pm PST”. Equal to kCFDateFormatterFullStyle.
Available in Mac OS X version 10.4 and later.
Andreas _______________________________________________
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