• 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: Localized sorting of a Core Data entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized sorting of a Core Data entity


  • Subject: Re: Localized sorting of a Core Data entity
  • From: WT <email@hidden>
  • Date: Thu, 07 Apr 2011 18:15:27 -0300

On Apr 7, 2011, at 3:23 PM, Chase Latta wrote:

> Also, I don't actually know if you can register to receive notifications when
> the user changes their language preference

You can: NSCurrentLocaleDidChangeNotification

WT

===
autoupdatingCurrentLocale
Returns the current logical locale for the current user.

+ (id)autoupdatingCurrentLocale
Return Value
The current logical locale for the current user. The locale is formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified in System Preferences.

The object always reflects the current state of the current user's locale settings.

Discussion
Settings you get from this locale do change as the user’s settings change (contrast withcurrentLocale).

Note that if you cache values based on the locale or related information, those caches will of course not be automatically updated by the updating of the locale object. You can recompute caches upon receipt of the notification (NSCurrentLocaleDidChangeNotification) that gets sent out for locale changes (see Notification Programming Topics to learn how to register for and receive notifications).

Availability
	• Available in iOS 2.0 and later.
See Also
	• + systemLocale
	• + currentLocale
Declared In
NSLocale.h
===_______________________________________________

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: 
 >Localized sorting of a Core Data entity (From: Ray <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Quincey Morris <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Ray <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Quincey Morris <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Dado Colussi <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Quincey Morris <email@hidden>)
 >Re: Localized sorting of a Core Data entity (From: Chase Latta <email@hidden>)

  • Prev by Date: Re: Are the progress spinner images publically available?
  • Next by Date: Re: How To Increment CALayer Retain Count?
  • Previous by thread: Re: Localized sorting of a Core Data entity
  • Next by thread: Re: Localized sorting of a Core Data entity
  • Index(es):
    • Date
    • Thread