Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CalEventMBS class

Super class: CalCalendarItemMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The class to handle events in iCal.
Example:
// start a connection to the calendar database
dim s as new CalCalendarStoreMBS

// needed for the error details
dim e as NSErrorMBS

// create a new event
dim c as new CalEventMBS

// set properties
dim calendars() as CalCalendarMBS = s.calendars
c.Title="new Event"
c.startDate=new date
c.calendar=calendars(0) // add to first calendar

dim d as new date
d.hour=d.hour+1
c.endDate=d

// save event
call s.saveEvent(c,s.CalSpanAllEvents, e)
if e<>nil then
MsgBox e.localizedDescription
else
MsgBox "New event was created."
end if
Notes:
Requires Mac OS X 10.5 to work.
Subclass of the CalCalendarItemMBS class.

Feedback, Comments & Corrections

Super class CalCalendarItemMBS

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


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


CalCalendarStoreMBS   -   CalNthWeekDayMBS




Links
MBS Xojo Plugins