Bug 5884 - Access hasNotes property of calendar object crashes the app
Summary: Access hasNotes property of calendar object crashes the app
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-06-27 05:55 UTC by Si Quy Lee
Modified: 2012-07-16 11:24 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Si Quy Lee 2012-06-27 05:55:31 UTC
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[EKEvent hasNotes]: unrecognized selector sent to instance 0xef88d0
  at MonoTouch.EventKit.EKCalendarItem.get_HasNotes () [0x0000b] in /Developer/MonoTouch/Source/monotouch/src/EventKit/EKCalendarItem.g.cs:401
  at CalendarView.Appointment..ctor (MonoTouch.EventKit.EKEvent evt) [0x0003b] in /Users/sutolym/wip/CalendarMono/CalendarView/Appointment.cs:23
  at Komfortmasken.Helpers.EventKitHelper.GetAppointments (DateTime startDate, DateTime endDate) [0x0008a] in /Users/sutolym/Projects/Helpers/EventKitHelper.cs:75
  at (wrapper delegate-invoke) <Module>:invoke_Appointment[]__this___DateTime_DateTime (System.DateTime,System.DateTime)
  at CalendarView.CalendarDayTimelineView.ReloadDay () [0x0008c] in /Users/sutolym/wip/CalendarMono/CalendarView/CalendarDayTimelineView.cs:282
  at CalendarView.CalendarDayTimelineView.MovedToWindow () [0x0000b] in /Users/sutolym/wip/CalendarMono/CalendarView/CalendarDayTimelineView.cs:182
  at MonoTouch.UIKit.UINavigationController.PushViewController (MonoTouch.UIKit.UIViewController viewController, Boolean animated) [0x0001c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UINavigationController.g.cs:127
  at Komfortmasken.Models.NavigationTable.NavItemTableSource.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00058] in /Users/sutolym/Projects/Models/NavigationTable/NavItemTableSource.cs:106
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
  at Komfortmasken.Application.Main (System.String[] args) [0x00000] in /Users/sutolym/Projects/Main.cs:16
Comment 1 Sebastien Pouliot 2012-07-16 11:24:46 UTC
`hasNotes` is also only available from iOS 5.0 (and more recent) versions