Platforms to show: All Mac Windows Linux Cross-Platform
Back to EKEventStoreMBS class.
EKEventStoreMBS.calendarItemsWithExternalIdentifier(identifier as string) as EKCalendarItemMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
externalIdentifier: The calendar item’s external identifier.
Returns an array of calendar items with the specified identifier.
The external identifier can be obtained from the calendarItemExternalIdentifier property. There may be more than one matching calendar item due to reasons discussed in calendarItemExternalIdentifier.
EKEventStoreMBS.calendarItemWithIdentifier(identifier as string) as EKCalendarItemMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Returs the reminder or the first occurrence of an event with the specified identifier.
EKEventStoreMBS.calendarsForEntityType(types as Integer) as EKCalendarMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
EKEventStoreMBS.calendarWithIdentifier(identifier as string) as EKCalendarMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
EKEventStoreMBS.cancelFetchRequest(request as EKFetchRequestMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Pass the request you got from fetchRemindersMatchingPredicate method.
The fetchRemindersMatchingPredicateCompleted event will not fire.
EKEventStoreMBS.commit(byref error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
error: The error variable to be filled with an error object.
If the commit operation succeeded, true is returned; otherwise, false. Returns true even when there are no changes to commit.
This method allows you to save batched changes to the event store. For example, if you pass false as the commit parameter to the saveCalendar, removeCalendar, saveEvent, or removeEvent methods, the changes are not saved until this method is invoked. Likewise, if you pass true as the commit parameter to the aforementioned methods, there is no need to call this method.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
EKEventStoreMBS.Constructor(sources() as EKSourceMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
sources: An array of sources the event source should contain. This array may include delegate sources.
An event store that contains data for a specific collection of event sources.
See also:
EKEventStoreMBS.Constructor(types as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Available in OS X v10.8 and later.
Deprecated in OS X v10.9.
See also:
EKEventStoreMBS.delegateSources as EKSourceMBS() Deprecated
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
By default, delegate event sources aren’t included in an event store’s sources. To access events and reminders in a delegate source
- Initialize an EKEventStore using init.
- Use requestAccessToEntityType:completion: to request access to the desired entity types.
- Get the delegate sources from the event store using delegateSources.
- After the request is granted, initialize another EKEventStoreMBS using Constructor, passing the delegate stores.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
EKEventStoreMBS.enumerateEventsMatchingPredicate(predicate as NSPredicateMBS, tag as Variant = nil)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
predicate: The search predicate. Must be created with the predicateForEventsWithStartDate:endDate:calendars method.
Only events that have been committed are included in enumeration.
Events saved using saveEvent with the commit parameter set to NO must call commit beforehand to be included.
This method is synchronous.
EKEventStoreMBS.eventsMatchingPredicate(predicate as NSPredicateMBS) as EKEventMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Returns all events that match predicate, as an array of EKEvent objects.
Only events that have been committed are included in the results. Events saved using saveEvent with the commit parameter set to false must call commit beforehand to be included.
This method is synchronous.
Some examples using this method:
EKEventStoreMBS.eventsMatchingPredicateAsync(predicate as NSPredicateMBS, tag as Variant = nil)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Calls later eventsMatchingPredicateAsyncCompleted event with all events that match predicate, as an array of EKEvent objects.
Only events that have been committed are included in the results. Events saved using saveEvent with the commit parameter set to false must call commit beforehand to be included.
This method is asynchronous.
EKEventStoreMBS.eventsWithExternalIdentifier(identifier as string) as EKCalendarItemMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Same as calendarItemsWithExternalIdentifier, but only returning events.
EKEventStoreMBS.eventWithIdentifier(identifier as string) as EKEventMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The event corresponding to identifier, or nil if no event is found.
EKEventStoreMBS.fetchRemindersMatchingPredicate(predicate as NSPredicateMBS, tag as Variant = nil) as EKFetchRequestMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
predicate: The search predicate.
Returns a value to be used in cancelFetchRequest to cancel the request later if desired.
Only reminders that have been committed are included in the results. Reminders saved using saveReminder with the commit parameter set to NO must call commit beforehand to be included.
This method fetches reminders asynchronously.
Calls FetchedReminders event later on success.
Some examples using this method:
EKEventStoreMBS.fetchRemindersMatchingPredicateSync(predicate as NSPredicateMBS) as EKReminderMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Same as fetchRemindersMatchingPredicate, except that we wait for result and return it without calling an event.
Only reminders that have been committed are included in the results. Reminders saved using saveReminder with the commit parameter set to NO must call commit beforehand to be included.
EKEventStoreMBS.saveCalendar(calendar as EKCalendarMBS, commit as boolean, byref error as NSErrorMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
calendar: The calendar to be saved.
commit: True to save the calendar immediately; otherwise, the change is batched until the commit method is invoked.
error: The error that occurred, if any; otherwise, nil.
Returns true if successful; otherwise, false.
This method raises an exception if calendar belongs to another event store.
EKEventStoreMBS.saveEvent(event as EKEventMBS, span as integer, byref error as NSErrorMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
event: The event to save.
span: The span that indicates whether to remove a single event or all future instances of the event in the case of a recurring event.
error: A pointer to an error object. If an error occurs, this pointer provides access to the error. If you don’t need the error information, pass nil.
Returns true if the event store saves the event successfully; otherwise, NO. This method also returns false if event wasn’t modified.
This method raises an exception if it’s passed an event from another event store.
When an event is saved, it’s updated in the Calendar database. Any fields you didn’t modify are updated to reflect the most recent value in the database. If the event has been deleted from the database, it’s recreated as a new event.
Same as other saveEvent, but with commit = false.
See also:
EKEventStoreMBS.saveEvent(event as EKEventMBS, span as Integer, commit as boolean, byref error as NSErrorMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
event: The event to be saved.
span: The span to use. Indicates whether the save affects future instances of the event in the case of a recurring event.
commit: To save the event immediately, pass true; otherwise, the change is batched until the commit: method is invoked.
error: The error that occurred, if any; otherwise, nil.
Returns if successful, true; otherwise, false. Also returns false if event does not need to be saved because it has not been modified.
This method raises an exception if it is passed an event from another event store.
When an event is saved, it is updated in the Calendar database. Any fields you did not modify are updated to reflect the most recent value in the database. If the event has been deleted from the database, it is re-created as a new event.
See also:
EKEventStoreMBS.saveReminder(reminder as EKReminderMBS, commit as boolean, byref error as NSErrorMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
reminder: The reminder to be saved.
commit: A Boolean value indicating whether to save the reminder immediately or to batch the changes; passing NO will not commit changes to the event store until the commit: method is invoked.
error: The error that occurred, if any; otherwise, nil.
If successful, true; otherwise, false.
This method raises an exception if reminder belongs to another event store.
Some examples using this method:
EKEventStoreMBS.sources as EKSourceMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
An EKSource object represents an account that contains calendars.
EKEventStoreMBS.sourceWithIdentifier(identifier as string) as EKSourceMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Calendar | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The items on this page are in the following plugins: MBS Mac64bit Plugin.