Platforms to show: All Mac Windows Linux Cross-Platform

Back to EKEventMBS class.

EKEventMBS.compareStartDateWithEvent(other as EKEventMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Calendar MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Compares the start date of the receiving event with the start date of another event.

other: The event to compare against.

NSOrderedAscending-1if the start date of the receiver precedes the start date of other.
NSOrderedSame0if the start dates of the two events are identical.
NSOrderedDescending1if the start date of the receiver comes after the start date of other.

EKEventMBS.Constructor(eventStore as EKEventStoreMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Calendar MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns a new event belonging to a specified event store.

eventStore: The event store to which the event belongs.

EKEventMBS.refresh as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Calendar MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Updates the event’s data with the current information in the Calendar database.

If the event was successfully refreshed, true; otherwise, false.

You should call this method only on events that your application is editing, and only when your application receives the EKEventStoreChangedNotification notification. If this method returns false, the event has been deleted or otherwise invalidated, and you should not continue to use it.

This method does not replace the values of any properties that you have modified.

EKEventMBS.setEndDate(d as date, tz as NSTimeZoneMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Calendar MBS Mac64bit Plugin 19.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the end date with given time zone.

EKEventMBS.setStartDate(d as date, tz as NSTimeZoneMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Calendar MBS Mac64bit Plugin 19.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the start date with given time zone.
Example
Dim es As New EKEventStoreMBS
Dim e As New EKEventMBS(es)

Dim d As New date

d.day = 2
d.Month = d.Month + 6

// sets with time zone in the date object
e.startDate = d

Dim d1 As date = e.startDate

// sets with the time zone local to that date for current user
e.setStartDate(d, NSTimeZoneMBS.localTimeZone)

Dim d2 As date = e.startDate


MsgBox d1.SQLDateTime + EndOfLine + d2.SQLDateTime

Break // you may see a difference due to summer/winter time switching

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...