Platforms to show: All Mac Windows Linux Cross-Platform
Back to EKEventStoreMBS class.
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.