Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCalendarMBS class.
NSCalendarMBS.autoupdatingCurrentCalendar as NSCalendarMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Settings you get from this calendar do change as the user's settings change (contrast with currentCalendar).
Note that if you cache values based on the calendar or related information those caches will of course not be automatically updated by the updating of the calendar object.
Available in Mac OS X v10.5 and later.
NSCalendarMBS.calendarWithIdentifier(identifier as String) as NSCalendarMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
identifier: The identifier for the new calendar. For valid identifiers, see Calendar Identifiers.
Returns he initialized calendar, or nil if the identifier is unknown (if, for example, it is either an unrecognized string or the calendar is not supported by the current version of the operating system).
The returned calendar defaults to the current locale and default time zone.
NSCalendarMBS.currentCalendar as NSCalendarMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The returned calendar 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. Settings you get from this calendar do not change as System Preferences are changed, so that your operations are consistent (contrast with autoupdatingCurrentCalendar).
Some examples using this method:
NSCalendarMBS.NSCalendarIdentifierBuddhist as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierChinese as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierCoptic as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteAlem as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteMihret as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierGregorian as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierHebrew as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIndian as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamic as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicCivil as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicTabular as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicUmmAlQura as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierISO8601 as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierJapanese as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierPersian as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierRepublicOfChina as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacBase Plugin.