[Mono-bugs] [Bug 641250] New: EKEventAvailabilty property not being set

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 22 19:47:47 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=641250

https://bugzilla.novell.com/show_bug.cgi?id=641250#c0


           Summary: EKEventAvailabilty property not being set
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: Tom1234 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3

I'm creating and saving an event, to the iOS calendar. But when setting the
evt.Availability property it remains at its default value, NotSupported.

According to the Apple documentation it should be working:
http://developer.apple.com/library/ios/#documentation/EventKit/Reference/EKEventClassRef/Reference/Reference.html

Use this code here to reproduce: 
--------------------------------

public static NSError nsError = new NSError();
public static EKEventStore ekEventStore = new EKEventStore();

public static bool CreateEvent(string day, string note, DateTime date)
{
    EKEvent evt = EKEvent.FromStore(ekEventStore);

    evt.Calendar = ekEventStore.DefaultCalendarForNewEvents;

    evt.Title = day;

    evt.Notes = note;

    evt.StartDate = date;
    evt.EndDate = date;

    evt.AllDay = true;
    evt.Availability = EKEventAvailability.Free; //Default Value is
"NotSupported", but when setting it to "Free" and debugging past this line, it
remains on "NotSupported".

    bool eventSaved = ekEventStore.SaveEvent(evt, EKSpan.ThisEvent,
nsError.Handle);

    return eventSaved;
}


Reproducible: Always

Steps to Reproduce:
1. Use code provided
2. Debug past the commented line
3. Watch the event's properties
Actual Results:  
evt.Availability = EKEventAvailability.Free;

Remains at "NotSupported"

Expected Results:  
Should be set to the "Free" like this:

evt.Availability = EKEventAvailability.Free;

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list