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

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

Reply via email to