• 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: Getting the NSDateFormatter strings from the user's preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Getting the NSDateFormatter strings from the user's preferences
      • From: James Bucanek <email@hidden>
References: 
 >Getting the NSDateFormatter strings from the user's preferences (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Using an alternate sort selector for a bound table column?
  • Next by Date: Re: A CoreData Limitation?
  • Previous by thread: Getting the NSDateFormatter strings from the user's preferences
  • Next by thread: Re: Getting the NSDateFormatter strings from the user's preferences
  • Index(es):
    • Date
    • Thread