On 24 Sep 2015, at 2:04 PM, Takaaki Naganoya <
email@hidden> wrote:
set eventStore to current application's EKEventStore's alloc()'s initWithAccessToEntityTypes:2 --Deprecated in OS X 10.9 ?
(* Enums: { EKEntityTypeEvent:0, EKEntityTypeReminder:1} But this should be 2 or greater *)
The docs are wrong on this. The enums are actually EKEntityMaskEvent:1, EKEntityMaskReminder:2.
set enterAlarm to current application's EKAlarm's alloc()'s init()
The documents say:
So change the above line to:
set enterAlarm to current application's EKAlarm's alarmWithRelativeOffset:0
And then your code seems to work fine here. Unfortunately I can't visit Game City to see if the reminder fires ;-)
It's pretty cool that you add geofence alarms like that, though.