Platforms to show: All Mac Windows Linux Cross-Platform
EKEventMBS class
Super class: EKCalendarItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Use the eventWithEventStore method to create a new event. Use the properties in the class to get and modify certain information about an event. Other properties, such as the event’s title and calendar, are inherited from the parent class EKCalendarItem.
Subclass of the EKCalendarItemMBS class.
- 15 properties
- property AllDay as Boolean
- property availability as Integer
- property birthdayContactIdentifier as String
- property birthdayPersonUniqueID as String
- property endDate as Date
- property endDateTime as DateTime
- property eventIdentifier as String
- property isDetached as Boolean
- property occurrenceDate as Date
- property occurrenceDateTime as DateTime
- property organizer as EKParticipantMBS
- property startDate as Date
- property startDateTime as DateTime
- property status as Integer
- property structuredLocation as EKStructuredLocationMBS
- 5 methods
- method compareStartDateWithEvent(other as EKEventMBS) as Integer
- method Constructor(eventStore as EKEventStoreMBS)
- method refresh as boolean
- method setEndDate(d as date, tz as NSTimeZoneMBS)
- method setStartDate(d as date, tz as NSTimeZoneMBS)
- shared method eventWithEventStore(eventStore as EKEventStoreMBS) as EKEventMBS
- 9 constants
Events Availability
Constant | Value | Description |
---|---|---|
kAvailabilityBusy | 0 |
The event has a busy availability setting. |
kAvailabilityFree | 1 |
The event has a free availability setting. |
kAvailabilityNotSupported | -1 |
Availability settings are not supported by the event’s calendar. |
kAvailabilityTentative | 2 |
The event has a tentative availability setting. |
kAvailabilityUnavailable | 3 |
The event has an unavailable availability setting. |
Status Constants
Constant | Value | Description |
---|---|---|
kStatusCanceled | 3 |
The event has no status. |
kStatusConfirmed | 1 |
The event has no status. |
kStatusNone | 0 |
The event has no status. |
kStatusTentative | 2 |
The event has no status. |
Super class EKCalendarItemMBS
- 16 properties
- property calendar as EKCalendarMBS
- property calendarItemExternalIdentifier as String
- property calendarItemIdentifier as String
- property creationDate as Date
- property creationDateTime as DateTime
- property hasAlarms as Boolean
- property hasAttendees as Boolean
- property hasNotes as Boolean
- property hasRecurrenceRules as Boolean
- property lastModifiedDate as Date
- property lastModifiedDateTime as DateTime
- property location as String
- property notes as String
- property timeZone as NSTimeZoneMBS
- property title as String
- property URL as String
- 9 methods
- method addAlarm(alarm as EKAlarmMBS)
- method addRecurrenceRule(rule as EKRecurrenceRuleMBS)
- method alarms as EKAlarmMBS()
- method attendees as EKParticipantMBS()
- method recurrenceRules as EKRecurrenceRuleMBS()
- method removeAlarm(alarm as EKAlarmMBS)
- method removeRecurrenceRule(rule as EKRecurrenceRuleMBS)
- method setAlarms(alarms() as EKAlarmMBS)
- method setRecurrenceRules(rules() as EKRecurrenceRuleMBS)
Super class EKObjectMBS
- property Handle as Integer
- 6 methods
- method Constructor Private
- method hasChanges as boolean
- method isNew as boolean
- method refresh as boolean
- method reset
- method rollback
This class has no sub classes.
Some methods using this class:
- EKEventStoreMBS.eventsMatchingPredicate(predicate as NSPredicateMBS) as EKEventMBS()
- EKEventStoreMBS.eventWithIdentifier(identifier as string) as EKEventMBS
- EKEventStoreMBS.removeEvent(event as EKEventMBS, span as integer, byref error as NSErrorMBS) as boolean
- EKEventStoreMBS.removeEvent(event as EKEventMBS, span as Integer, commit as boolean, byref error as NSErrorMBS) as boolean
- EKEventStoreMBS.saveEvent(event as EKEventMBS, span as integer, byref error as NSErrorMBS) as boolean
- EKEventStoreMBS.saveEvent(event as EKEventMBS, span as Integer, commit as boolean, byref error as NSErrorMBS) as boolean
Some events using this class:
- EKEventStoreMBS.enumerateEventsMatchingPredicateUpdate(e as EKEventMBS, byref stop as boolean, predicate as NSPredicateMBS, tag as Variant)
- EKEventStoreMBS.eventsMatchingPredicateAsyncCompleted(events() as EKEventMBS, predicate as NSPredicateMBS, tag as Variant)
Some examples using this class:
Blog Entries
- News from the MBS Xojo Plugins Version 22.0
- MBS Xojo Plugins, version 22.0pr7
- MBS Xojo Plugins, version 20.5pr6
- MBS Xojo Plugins, version 19.4pr7
Xojo Developer Magazine
Release notes
- Version 22.0
- Added birthdayContactIdentifier and structuredLocation properties to EKEventMBS class.
- Added iOS support for Color property in EKEventMBS class.
- Version 20.5
- Added datetime properties to EKEventMBS and EKAlarmMBS classes.
- Version 19.4
- Added setStartDate and setEndDate for EKEventMBS and CalEventMBS classes, so you can specify which time zone to use for converting between Date and NSDate.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
EKCalendarMBS - EKEventStoreMBS