CalCalendarStore notification names?
CalCalendarStore notification names?
- Subject: CalCalendarStore notification names?
- From: Daniel Wambold <email@hidden>
- Date: Sat, 19 Jan 2008 17:01:23 -0500
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden