CalCalendarStore notification names?

  • Hello. I'm working with CalCalenarStore distributed notifications and
    I can't seem to figure this out: The manual for the class lists
    notifications, namely:
    "The following notifications are posted when another application
    changes these types of objects:
    CalCalendarsChangedExternallyNotification
    ,CalEventsChangedExternallyNotification, and
    CalTasksChangedExternallyNotification notifications."
    However, my code (below) does not respond (debugger break, NSLogs,
    etc.) to changes made in iCal:
    [[NSDistributedNotificationCenter defaultCenter] addObserver:self
    selector:@selector(myUpdateCalendarList:)
    name
    :@"com.apple.CalendarStore.CalDistributedCalendarsChangedNotification"
    object:nil
    suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
    If I NSLog ALL distributed notification names, however, this one
    appears at the correct times:
    com.apple.CalendarStore.CalDistributedCalendarsChangedNotification
    If I use the above string in my addObserver... it works fine. Is this
    a documentation error, or have I somehow got the wrong docs, or am I
    missing something else entirely? Thanks! -Dan W
  • Sorry, I see they should be local, not distributed notifications for
    the manual's terminology to apply. -Dan
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today