• 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
NSCalendarDate not localized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCalendarDate not localized


  • Subject: NSCalendarDate not localized
  • From: Bruno Blondeau <email@hidden>
  • Date: Mon, 14 Jun 2004 00:35:54 +0200

I'm using the following code to insert the current date:

NSString * my_format = [[NSUserDefaults standardUserDefaults] objectForKey:NSDateFormatString];

[textView insertText:[[NSCalendarDate calendarDate] descriptionWithCalendarFormat:my_format]];

However, in all cases, I'm getting this

Monday 14 June 2004

Even if the system preferences are set for a different date format. How can I modify this code to be localized?


Bruno
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSCalendarDate not localized
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: Cocoa and resource forks
  • Next by Date: _NSGetCarbonMenu question
  • Previous by thread: Re: Zooming a NSTextView
  • Next by thread: Re: NSCalendarDate not localized
  • Index(es):
    • Date
    • Thread