Platforms to show: All Mac Windows Linux Cross-Platform

CalEventMBS class   Deprecated

Super class: CalCalendarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Calendar MBS MacFrameworks Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This item is deprecated and should no longer be used. You can use EKEventMBS instead.
The class to handle events in iCal.
Example
// start a connection to the calendar database
Var s as new CalCalendarStoreMBS

// needed for the error details
Var e as NSErrorMBS

// create a new event
Var c as new CalEventMBS

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

Var 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

Requires Mac OS X 10.5 to work.
Subclass of the CalCalendarItemMBS class.

Super class CalCalendarItemMBS

This class has no sub classes.

Blog Entries

Release notes

  • Version 20.0
    • Fixed bug in setStartDate and setEndDate methods in CalEventMBS class.
  • 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.

Some methods using this class:

Some examples using this class:

Some related classes:


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


CalCalendarStoreMBS   -   CalNthWeekDayMBS


The biggest plugin in space...