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.NSBuddhistCalendar as string
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 |
Identifier for the Buddhist calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSChineseCalendar as string
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 |
Identifier for the Chinese calendar (unsupported).
Note that the Chinese calendar is not supported in Mac OS X v10.4-10.5. Although you can create a calendar using this constant, the object will not function correctly.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSCurrentLocaleDidChangeNotification as String
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 |
Register for this notification if your app displays content (dates, times, numbers, and so on) that is affected by the locale. Use the notification to trigger updates to your app's interface.
NSLocaleMBS.NSGregorianCalendar as string
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 |
Identifier for the Gregorian calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSHebrewCalendar as string
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 |
Identifier for the Hebrew calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSIndianCalendar 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 |
Identifier for the Indian calendar
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSIslamicCalendar as string
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 |
Identifier for the Islamic calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSIslamicCivilCalendar as string
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 |
Identifier for the Islamic civil calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSISO8601Calendar 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 |
Identifier for the ISO8601. The ISO8601 calendar is not yet implemented.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSJapaneseCalendar as string
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 |
Identifier for the Japanese calendar.
Available in Mac OS X v10.4 and later.
NSLocaleMBS.NSLocaleAlternateQuotationBeginDelimiterKey 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 key for the alternating begin quotation symbol associated with the locale. In some locales, when quotations are nested, the quotation characters alternate. Thus, NSLocaleQuotationBeginDelimiterKey, then NSLocaleAlternateQuotationBeginDelimiterKey, etc.
The corresponding value is a string.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSLocaleAlternateQuotationEndDelimiterKey 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 key for the alternating enda quotation symbol associated with the locale. In some locales, when quotations are nested, the quotation characters alternate. Thus, NSLocaleQuotationEndDelimiterKey, then NSLocaleAlternateQuotationEndDelimiterKey, etc.
The corresponding value is a string.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSLocaleCalendar as string
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 |
NSLocaleMBS.NSLocaleCollationIdentifier as string
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 |
NSLocaleMBS.NSLocaleCollatorIdentifier 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 key for the collation identifier for the locale.
The corresponding value is a string. If unknown, "" is returned.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSLocaleCountryCode as string
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 |
NSLocaleMBS.NSLocaleCurrencyCode as string
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 |
NSLocaleMBS.NSLocaleCurrencySymbol as string
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 |
NSLocaleMBS.NSLocaleDecimalSeparator as string
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 |
NSLocaleMBS.NSLocaleExemplarCharacterSet as string
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 |
NSLocaleMBS.NSLocaleGroupingSeparator as string
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 |
NSLocaleMBS.NSLocaleIdentifier as string
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 |
Some examples using this method:
NSLocaleMBS.NSLocaleLanguageCode as string
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 |
NSLocaleMBS.NSLocaleMeasurementSystem as string
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 |
NSLocaleMBS.NSLocaleQuotationBeginDelimiterKey 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 key for the begin quotation symbol associated with the locale.
The corresponding value is a string.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSLocaleQuotationEndDelimiterKey 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 key for the begin quotation symbol associated with the locale.
The corresponding value is string.
Available in Mac OS X v10.6 and later.
NSLocaleMBS.NSLocaleScriptCode as string
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 items on this page are in the following plugins: MBS MacBase Plugin.
