Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSLocaleMBS class.
NSLocaleMBS.autoupdatingCurrentLocale as NSLocaleMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Settings you get from this locale do change as the user's settings change (contrast with currentLocale).
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.
Available in Mac OS X v10.5 and later.
NSLocaleMBS.availableLocaleIdentifiers as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Some examples using this method:
NSLocaleMBS.canonicalLanguageIdentifierFromString(s as string) as string
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
s: A string representation of an arbitrary locale identifier.
Returns a string that represents the canonical language identifier for the specified arbitrary locale identifier.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.canonicalLocaleIdentifierFromString(s as string) as string
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
NSLocaleMBS.characterDirectionForLanguage(isoLangCode as string) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns the character direction for the language. See constants for possible values. If the appropriate direction can't be determined NSLocaleLanguageDirectionUnknown is returned.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.commonISOCurrencyCodes as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Common codes may include, for example, AED, AUD, BZD, DKK, EUR, GBP, JPY, KES, MXN, OMR, STD, USD, XCD, and ZWD.
Available in Mac OS X v10.5 and later.
NSLocaleMBS.currentLocale as NSLocaleMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
The 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.
This method may return a retained cached object.
Discussion:
Settings you get from this locale do not change as System Preferences are changed so that your operations are consistent. Typically you perform some operations on the returned object and then allow it to be disposed of. Moreover, since the returned object may be cached, you do not need to hold on to it indefinitely.
NSLocaleMBS.ISOCountryCodes as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Note that many of country codes do not have any supporting locale data in Mac OS X.
NSLocaleMBS.ISOCurrencyCodes as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Note that some of the currency codes may not have any supporting locale data in Mac OS X.
NSLocaleMBS.ISOLanguageCodes as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
Note that many of the language codes will not have any supporting locale data in Mac OS X.
NSLocaleMBS.lineDirectionForLanguage(isoLangCode as string) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns the line direction for the language. See constants for possible values. If the appropriate direction can't be determined NSLocaleLanguageDirectionUnknown is returned.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.localeIdentifierFromWindowsLocaleCode(code as Integer) as string
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.6 and later.
NSLocaleMBS.localeWithLocaleIdentifier(LocaleIdentifier as String) as NSLocaleMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 24.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSLocaleMBS.preferredLanguages as string()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The user's language preference order as an array of String objects, each of which is a canonicalized IETF BCP 47 language identifier.
Available in Mac OS X v10.5 and later.
This is the language the user prefers. To get the country linked to the number and date formats, use the CountryCode property.
NSLocaleMBS.systemLocale as NSLocaleMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.4 and later.
NSLocaleMBS.windowsLocaleCodeFromLocaleIdentifier(s as string) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Currency, Date and Time Format | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in Mac OS X v10.6 and later.
The items on this page are in the following plugins: MBS MacBase Plugin.